“Widget:BackgroundImage”的版本间的差异
BallanceBug(讨论 | 贡献) |
BallanceBug(讨论 | 贡献) |
||
第1行: | 第1行: | ||
<style> | <style> | ||
− | body {background: url("<!--{$link|escape:'html'}-->"); background-size: contain; background-attachment: fixed; background-repeat: no-repeat; background-position: left top | + | body {position: relative} |
− | + | body:after {content: ""; opacity: 0.6; top: 0; left: 0; bottom: 0; right: 0; position: absolute; z-index: -1; background: url("<!--{$link|escape:'html'}-->"); background-size: contain; background-attachment: fixed; background-repeat: no-repeat; background-position: left top} | |
+ | .mw-body {background: rgba(255, 255, 255, 0.8)} | ||
</style> | </style> |
2020年2月10日 (一) 00:49的版本
<style> body {position: relative} body:after {content: ""; opacity: 0.6; top: 0; left: 0; bottom: 0; right: 0; position: absolute; z-index: -1; background: url(""); background-size: contain; background-attachment: fixed; background-repeat: no-repeat; background-position: left top} .mw-body {background: rgba(255, 255, 255, 0.8)} </style>