模板:Background/styles.css:修订间差异
来自Blockland Wiki
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第6行: | 第6行: | ||
height: 100%; | height: 100%; | ||
overflow: hidden; | |||
z-index: -1; | z-index: -1; | ||
background-color: transparent; | |||
} | } | ||
.background- | .background-image { | ||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
} | } | ||
. | .background-source { | ||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
object-position: center center; | |||
border: 0; | |||
opacity: 1; | |||
} | } | ||
. | .background-image-dark { | ||
display: | display: none; | ||
} | } | ||
2026年10月8日 (四) 22:25的版本
.background-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: -1;
background-color: transparent;
}
.background-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.background-source {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center center;
border: 0;
opacity: 1;
}
.background-image-dark {
display: none;
}