当前位置:Gxlcms > html代码 > dede最近一天发布的文章标题前加hot_html/css_WEB-ITnose

dede最近一天发布的文章标题前加hot_html/css_WEB-ITnose

时间:2021-07-01 10:21:17 帮助过:9人阅读

{dede:list pagesize ='15'}                					

[field:pubdate runphp='yes'] $aa=strftime('%m-%d',@me); $ntime = time(); $tagtime = @me; $day1 = 3600 * 24 * 1; if($tagtime > $ntime-$day1) @me = ''; else @me = ""; [/field:pubdate] [field:title/]

[field:description function="cn_substr(@me,200)"/]...[详情]

[field:pubdate function="GetDateTimeMK(@me)" /] 来源:[field:source/]
{/dede:list}

  css

.news_list .title.hot{  text-indent: 20px;  position: relative;}.news_list .title.hot span{  text-indent: 0;  position: absolute;  display: block;  left: 0;  top: 21px;  width: 18px;  height: 18px;  line-height: 16px;  font-size: 12px;  color: #ffffff;  border: 1px solid #E10400;  background-color: #FF4200;  border-radius: 2px;  text-align: center;  font-family: "\5b8b\4f53";}

 效果

 

人气教程排行