模板:Test/character:修订间差异

来自夜幕之下
跳到导航跳到搜索
Rin留言 | 贡献
无编辑摘要
Rin留言 | 贡献
无编辑摘要
第1行: 第1行:
<templatestyles>
<templatestyles>
.fullscreen_card {
.card-fullscreen-img {
  position: fixed;
    position: fixed;
  top: 0;
    top: 0;
  left: 0;
    left: 0;
  width: 100vw;
    width: 100vw;
  height: 100vh;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}


  z-index: -999;   /* 比正文更低 */
.card-fullscreen-img img {
  pointer-events: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
}


.fullscreen_card img {
.card-content-container {
  width: 100%;
    position: relative;
  height: 100%;
    left: 50%;
  object-fit: cover;
    width: 100vw;
    transform: translateX(-50%);
    z-index: 1;
}
 
.card-placeholder {
    height: 40vh;
}
}
</templatestyles>
</templatestyles>


<div class="fullscreen_card">
<div class="card-fullscreen-img">
  [[File:test卡面.jpg|frameless]]
[[File:test卡面.jpg|frameless]]
</div>
 
<div class="card-placeholder"></div>
 
<div class="card-content-container">
你的正文内容
</div>
</div>

2026年3月2日 (一) 20:47的版本

模板样式的src属性不得为空。

你的正文内容