dedecms文章列表加上序號效果,織夢文章
導讀:織夢文章織夢文章關鍵字描述:效果 加上 文章 quot .downtop UL.text lt;style type=text/css !-- .downtop { FLOAT織夢的模板dede免費模板。
關鍵字描述:效果 加上 文章 < " .downtop UL.text > class
今天偶來介紹如何在dedecms文章列表加上序號: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 ULdede手機模板.text SPAN.tit { PADDING-LEFT: 10px; OVERFLOW: hidden; WIDTH: 168px; WHITE-SPACE: nowrap; HEIGHT: 21px } --> </style> dede標簽部分代碼 <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=&q織夢模板免費uot;[field:filename/]">[field:title/]</A></SPAN></LI> {/dede:arclist} </UL> </DIV> 效果圖相關織夢的模板dede免費模板。
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-20 ,文章dedecms文章列表加上序號效果,織夢文章主要講述文章列表,序號,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_31916.html