Template:Iconcard:修订间差异
外观
小无编辑摘要 |
小无编辑摘要 |
||
| 第1行: | 第1行: | ||
<includeonly> | <includeonly> | ||
<!-- | <!-- 图标卡片核心样式:80x80内联块,居中对齐,图标+文字布局 --> | ||
<div style="display:inline-block; vertical-align:top; width:80px; min-width:80px; height:80px; min-height:80px;margin:1px; border:solid 1px; padding:4px; text-align:center; line-height:12px; | <div style=" | ||
display: inline-block; | |||
vertical-align: top; | |||
width: 80px; | |||
min-width: 80px; | |||
height: 80px; | |||
min-height: 80px; | |||
margin: 1px; | |||
border: solid 1px #000; /* 默认黑色边框,可按需调整 */ | |||
padding: 4px; | |||
text-align: center; | |||
line-height: 12px; | |||
"> | |||
<!-- Font Awesome图标:使用第一个匿名参数作为图标名 --> | |||
{{fa|{{{1|}}}|size=28px|style= | |||
border-bottom: solid 1px #000; | |||
padding: 8px; | |||
margin-bottom: 8px; | |||
}}<br/> | |||
<!-- 图标名称文字:与图标名一致 --> | |||
<span style=" | |||
font-size: 12px; | |||
max-height: 24px; | |||
line-height: 12px; | |||
word-break: break-all; /* 防止长名称溢出 */ | |||
"> | |||
{{{1|}}} | |||
</span> | |||
</div> | </div> | ||
</includeonly | </includeonly><noinclude>{{Documentation}}</noinclude> | ||