微件:CustomBackground

出自HUIJIA FUN
於 2024年4月8日 (一) 07:11 由 Plurimod学生会對話 | 貢獻 所做的修訂 (创建页面)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)

<style> .Cbackground {

   position: fixed;
   background-size: cover!important;
   top: 0;
   width: 100%;
   height: 100%;
   z-index: -1;
   background-position: center!important;

}

  1. mw-content-container{background: rgba(255,255,255,0.6);}
  2. mw-content,.sidebar-chunk

{ background: rgba(255,255,255,0.7)!important; backdrop-filter: blur(20px); } </style> <script> RLQ.push(function() { var Cbackground = document.getElementById("Cbackground"); var file = Cbackground.getAttribute("data-file"); Cbackground.setAttribute('style','background:url('+file+')'); var wrapper = document.getElementById("mw-wrapper"); wrapper.appendChild(Cbackground); }); </script>