織夢(mèng)DEDECMS程序默認(rèn)模板首頁欄目?jī)?nèi)的文章標(biāo)題前有一個(gè)發(fā)布日期,很多網(wǎng)友都覺得不好看,不適用。因?yàn)榇蠖鄶?shù)網(wǎng)站的發(fā)布日期或時(shí)間都是放在標(biāo)題后面的。
那么織夢(mèng)DEDECMS首頁發(fā)布日期的位置又要怎么來修改呢?以下來教大家一個(gè)非常簡(jiǎn)單的修改方法吧。
在/templets/default/style/layout.css 層疊樣式表文檔中有幾段代碼如下:
/*---------- d :附加信息列表 ---------*/
.d1{/* 前置時(shí)間日期的小列表 */
padding:4px 0px;
}
.d1 li{
height:27px;
line-height:27px;
overflow:hidden;
}
.d1 li span{
color:ABA9A2;
margin-right:5px;
float:left;
}
.d1 li a{
}
.d2{/* 后置時(shí)間日期的小列表 */
padding:4px 0px;
}
.d2 li{
height:27px;
line-height:27px;
overflow:hidden;
}
.d2 li span{
color:777;
float:right;
padding-right:10px;
margin-left:10px;
}
.d2 li a{
overflow:hidden;
}
.d4{/*帶內(nèi)容簡(jiǎn)介的小列表*/
padding:0px 0px;
}
.d4 li{
padding:4px 8px;
overflow:hidden;
}
.d4 li a{
display:block;
line-height:23px;
overflow:hidden;
text-indent:14px;
background:url(../images/ico-3.gif) 4px 9px no-repeat;
}
.d4 li p{
color:#888;
line-height:17px;
height:33px;
overflow:hidden;
}
.d5{/* 后置時(shí)間日期的大列表 */
padding:8px;
border-bottom:1px solid #EEE;
}
.d5 li{
height:41px;
line-height:41px;
background:url(../images/ico-2.gif) 2px 17px no-repeat;
padding-left:16px;
}
.d5 li a{
font-size:14px;
}
.d5 li span{
margin-left:10px;
color:#777;
這段附加信息列表代碼是專門用于調(diào)試首頁時(shí)間顯示位置的。
其具體修改方法如下:
打開后臺(tái)模板——默認(rèn)模板管理——主頁模板(index.htm),找到以下代碼:
<dt><strong><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></strong><span class="more"><a href="{dede:field name='typeurl'/}">更多...</a></span></dt>
<dd>
<ul class="d1 ico3">
{dede:arclist titlelen='60' row='8'}
<li><span>[field:pubdate function="MyDate('m-d',@me)"/]</span><a href="[field:arcurl /]">[field:title /]</a></li>
{/dede:arclist}
</ul>
其中紅色部分的“d1”標(biāo)簽就是控制日期位置的。只需把“d1”改完“d2”,首頁欄目文章前的發(fā)布日期就會(huì)改完標(biāo)題后面了。
本文關(guān)鍵字:深圳網(wǎng)站建設(shè),深圳高端網(wǎng)站建設(shè),深圳品牌網(wǎng)站建設(shè),深圳營銷型網(wǎng)站建設(shè),深圳外貿(mào)網(wǎng)站建設(shè),深圳企業(yè)網(wǎng)站建設(shè),南山網(wǎng)站建設(shè),寶安網(wǎng)站建設(shè)
轉(zhuǎn)載請(qǐng)注明http://tjdzrhy.com