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

来自夜幕之下
跳到导航跳到搜索
Rin留言 | 贡献
创建页面,内容为“<templatestyles> .example-box { border: 2px solid #888; padding: 8px; background: #fff4f4; color: #202020; } </templatestyles> <div class="example-box"> 这是带有样式的示例模板。 </div>”
 
Rin留言 | 贡献
无编辑摘要
第1行: 第1行:
<templatestyles>
<templatestyles>
.example-box {
.fullscreen_card {
   border: 2px solid #888;
  position: fixed;
   padding: 8px;
  inset: 0;
   background: #fff4f4;
  z-index: -1;          /* 放到底层 */
   color: #202020;
  overflow: hidden;
}
 
.fullscreen_card img {
   width: 100%;
   height: 100%;
   object-fit: cover;    /* 等价于 background-size: cover */
   object-position: center;
}
}
</templatestyles>
</templatestyles>


<div class="example-box">
<div class="fullscreen_card">
   这是带有样式的示例模板。
   [[File:test卡面.jpg|class=bgimg]]
</div>
</div>

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

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