MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* | /* 电脑端样式 */ | ||
. | .responsive-two-columns .left-col { | ||
width: 320px; | width: 320px; | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
.responsive-two-columns .right-col { | |||
. | |||
vertical-align: top; | vertical-align: top; | ||
padding-left: 20px; | padding-left: 20px; | ||
} | } | ||
/* | /* 手机端样式 */ | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
. | .responsive-two-columns, | ||
. | .responsive-two-columns tbody, | ||
. | .responsive-two-columns tr, | ||
.responsive-two-columns td { | |||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
} | } | ||
. | .responsive-two-columns .right-col { | ||
padding-left: 0; | padding-left: 0; | ||
margin-top: 20px; | margin-top: 20px; | ||
} | } | ||
.responsive-two-columns img { | |||
. | |||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
} | } | ||
} | } | ||
2026年4月21日 (二) 09:26的版本
/* 电脑端样式 */
.responsive-two-columns .left-col {
width: 320px;
vertical-align: top;
}
.responsive-two-columns .right-col {
vertical-align: top;
padding-left: 20px;
}
/* 手机端样式 */
@media screen and (max-width: 768px) {
.responsive-two-columns,
.responsive-two-columns tbody,
.responsive-two-columns tr,
.responsive-two-columns td {
display: block;
width: 100%;
}
.responsive-two-columns .right-col {
padding-left: 0;
margin-top: 20px;
}
.responsive-two-columns img {
max-width: 100%;
height: auto;
}
}