模板:公告列表:修订间差异
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
<div style=" | <includeonly> | ||
<div class="外层box"> | |||
<span class="公告图标">{{{1|}}}</span> | |||
<span class="文字部分"> | |||
<a rel="nofollow" class="external text" href="{{{3|}}}"> | |||
<font class="BOX-zt" style="color:rgba(255, 255, 255, 0.85);">{{{2|}}}</font></a> | |||
</span> | |||
</div> | |||
{{#css: | |||
.公告图标 { | |||
float: left; | |||
width: 36px; | |||
height: 22px; | |||
line-height: 22px; | |||
background: url(https://i.17173cdn.com/g8bz6k/zzz/4/40/postsicon.png) no-repeat; | |||
background-size: auto; | |||
border-radius: 2px; | |||
color: #fff; | |||
text-align: center; | |||
margin: 4px 0px; | |||
margin-right: 10px; | |||
font-size: 12px | |||
} | |||
.外层box { | |||
background-color: transparent; | |||
color: #fff; | |||
border: 1px solid transparent; | |||
} | |||
.文字部分 { | |||
float: left; | |||
width: calc(100% - 46px); | |||
height: 22px; | |||
line-height: 22px; | |||
margin: 4px 0px; | |||
overflow: hidden; | |||
white-space: nowrap; | |||
text-overflow: ellipsis; | |||
} | |||
}} | |||
</includeonly> | |||
<noinclude> | |||
{{公告列表|公告|公1告|公2告}} | |||
{{公告列表|公告|公1告|公2告}} | |||
{{公告列表|公告|公1告|公2告}} |