濮阳杆衣贸易有限公司

主頁 > 網(wǎng)站建設(shè) > 建站知識(shí) > dedecms文章列表加上序號(hào)效果

dedecms文章列表加上序號(hào)效果

POST TIME:2020-04-10 14:35

關(guān)鍵字描述:效果 加上 文章 < " .downtop UL.text > class

今天偶來介紹如何在dedecms文章列表加上序號(hào):

css代碼部分
<style type="text/css">
<!--
.downtop {
FLOAT: left; OVERFLOW: hidden; WIDTH: 218px; HEIGHT: 278px
}
.downtop UL.text {
MARGIN: 0px 10px; WIDTH: 198px; PADDING-TOP: 5px
}
.downtop UL.text LI {
WIDTH: 198px
}
.downtop UL.text SPAN {
DISPLAY: block; FLOAT: left
}
.downtop UL.text SPAN.num {
MARGIN-TOP: 4px; PADDING-LEFT: 1px; FONT-WEIGHT: bold; FONT-SIZE: 10px; WIDTH: 18px; LINE-HEIGHT: 12px; HEIGHT: 13px; TEXT-ALIGN: center;COLOR: #fff; BACKGROUND-COLOR: #b7b7b7
}
.downtop UL.text LI SPAN.active {
BACKGROUND-COLOR: #7abdff
}
.downtop UL.text SPAN.tit {
PADDING-LEFT: 10px; OVERFLOW: hidden; WIDTH: 168px; WHITE-SPACE: nowrap; HEIGHT: 21px
}

-->
</style>


dede標(biāo)簽部分代碼
<DIV class="downtop border">
<UL class=text>
{dede:arclist orderby=pubdate type='commend.' titlelen='26' row='10' channel=3}
<LI>[field:global runphp='yes' name=autoindex]
$a="<SPAN class='num active'>";
$b="</SPAN>";
$c="<SPAN class='num'>";
if (@me > 3) @me = $c.@me.$b;
else @me = $a.@me.$b;
[/field:global] <SPAN class=tit><A title="[field:title/]"
href="[field:filename/]">[field:title/]</A></SPAN></LI>
{/dede:arclist}
</UL>
</DIV>


收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
江油市| 岗巴县| 建昌县| 天柱县| 湖北省| 西畴县| 犍为县| 东乡县| 阿拉善左旗| 兴文县| 镇江市| 疏勒县| 长乐市| 秀山| 石阡县| 镇远县| 天津市| 石台县| 文昌市| 上饶县| 会宁县| 论坛| 石河子市| 沛县| 松溪县| 天柱县| 平武县| 承德县| 鸡东县| 许昌市| 饶河县| 沙湾县| 和静县| 潍坊市| 内丘县| 桂林市| 乌审旗| 奉节县| 镇巴县| 明星| 邢台市|