MediaWiki:Common.css
MediaWiki界面页面
更多操作
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 默认(电脑端):保持两列并排,类似原表格效果 */
.mobile-stack-layout {
display: table;
width: 100%;
border: none;
}
.mobile-stack-layout .left-col {
display: table-cell;
width: 320px;
vertical-align: top;
}
.mobile-stack-layout .right-col {
display: table-cell;
vertical-align: top;
padding-left: 20px;
}
/* 手机端(屏幕宽度 ≤ 768px):自动换行堆叠 */
@media screen and (max-width: 768px) {
.mobile-stack-layout,
.mobile-stack-layout .left-col,
.mobile-stack-layout .right-col {
display: block;
width: 100%;
}
.mobile-stack-layout .right-col {
padding-left: 0;
margin-top: 20px;
}
/* 图片自适应 */
.mobile-stack-layout img {
max-width: 100%;
height: auto;
}
}