MediaWiki:Timeless.css:修订间差异

来自空幻城档案馆 | Skyhuancity Archive
无编辑摘要
无编辑摘要
第1行: 第1行:
/* 这里放置的CSS将应用于Timeless皮肤 */
/* 设置整体网页的大背景 */
/* 或者是 body 元素 */
#mw-content-container {
#mw-content-container {
     background-image: url('/images/a/ab/background.png'); /* 替换为你的图片URL */
     background-image: url('/images/a/ab/Background.jpg'); /* 替换为你的图片URL */
     background-repeat: no-repeat;
     background-repeat: no-repeat;
     background-position: center center;
     background-position: center center;
     background-attachment: fixed;
     background-attachment: fixed;
     background-size: cover;
     background-size: cover;
}
/* 恢复/指定 Header 的背景色(不再是 transparent) */
#mw-header-container {
    /* 方案 1:使用 Timeless 默认的深灰色背景 */
    background: #2a2a2a;
   
    /* 方案 2:如果你想换成纯黑色,可以改成 #000000 */
    /* 方案 3:如果你想换成纯白色,可以改成 #ffffff */
   
    border-bottom: 1px solid #dcdcdc; /* 可选:给头部下方加一条浅色分割线 */
}
/* 如果底部 Footer 你也不想透明,可以同样指定颜色 */
#mw-footer-container {
    background: #f8f9fa; /* 默认的浅灰色 */
}
}

2026年7月4日 (六) 13:26的版本

/* 设置整体网页的大背景 */
#mw-content-container {
    background-image: url('/images/a/ab/Background.jpg'); /* 替换为你的图片URL */
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

/* 恢复/指定 Header 的背景色(不再是 transparent) */
#mw-header-container {
    /* 方案 1:使用 Timeless 默认的深灰色背景 */
    background: #2a2a2a; 
    
    /* 方案 2:如果你想换成纯黑色,可以改成 #000000 */
    /* 方案 3:如果你想换成纯白色,可以改成 #ffffff */
    
    border-bottom: 1px solid #dcdcdc; /* 可选:给头部下方加一条浅色分割线 */
}

/* 如果底部 Footer 你也不想透明,可以同样指定颜色 */
#mw-footer-container {
    background: #f8f9fa; /* 默认的浅灰色 */
}