MediaWiki:Minerva.css: Difference between revisions

Created page with "→All CSS here will be loaded for users of the MinervaNeue skin: →仅在查看首页时,针对 Minerva 皮肤生效: body.skin-minerva.page-Main_Page .header-container .branding-box h1 { →1. 将文字颜色设为透明,使其不可见: color: transparent !important; →2. 移除文字本身的背景,准备用图片作为背景: background-color: transparent !important; →3. 用你的图片作为背景: backgroun..."
 
No edit summary
Line 13: Line 13:
      
      
     /* 3. 用你的图片作为背景 */
     /* 3. 用你的图片作为背景 */
     background-image: url("你的图片完整URL地址");
     background-image: url("http://www.chinaenglish.com/images/HomeBanner.png");
     background-repeat: no-repeat;
     background-repeat: no-repeat;
     background-position: left center; /* 图片靠左,垂直居中 */
     background-position: left center; /* 图片靠左,垂直居中 */