MediaWiki:Common.js:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第15行: | 第15行: | ||
/* 首字下沉 */ | /* 首字下沉 */ | ||
. | .dropCap::first-letter { | ||
float: left; | |||
font-size: 3.2em !important; | |||
line-height: 0.85em !important; | |||
margin-right: 0.1em !important; | |||
font-weight: bold; | |||
color: #000; | |||
} | } | ||
2026年3月28日 (六) 01:07的版本
/* 这里的任何JavaScript将为所有用户在每次页面加载时加载。 */
/* USERNAME */
$( function() {
if ( mw.user.isNamed() ) {
$( '.insertusername' ).text( mw.user.getName() );
} else {
$( '.insertusername' ).text( '访客' );
}
} );
/* INFOBOX */
$('.infobox').hide();
/* 首字下沉 */
.dropCap::first-letter {
float: left;
font-size: 3.2em !important;
line-height: 0.85em !important;
margin-right: 0.1em !important;
font-weight: bold;
color: #000;
}