File: /www/wwwroot/cs.wgegeghx.com/templates/default/index/sider.html
<style>
.article-hot-l {
padding: 25px 20px;
margin-bottom: 20px;
border-radius: 8px;
background: white;
width: 100%;
}
.content-title {
font-size: 18px;
line-height: 40px;
height:45px;
border:0;
background:none;
padding-left:0;
color: #333;
display: inline-block;
font-weight: 700;
}
.article-hot-l ul li {
height: 20px;
line-height: 20px;
margin-top: 20px;
}
.article-hot-l ul li .top {
background: #ff700a;
}
.article-hot-l ul li em {
float: left;
width: 25px;
height: 20px;
line-height: 20px;
text-align: center;
background: #ddd;
font-size: 13px;
color: #fff;
border-radius: 3px;
margin-right: 10px;
}
.article-hot-l ul li a {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: block;
font-size: 14px;
}
.content-left{
background:#f6f6f6;
}
.article-hot-l li:nth-child(1) em{
background:#ff700a;
}
.article-hot-l li:nth-child(2) em{
background:#ff842c;
}
.article-hot-l li:nth-child(3) em{
background:#ffb885;
}
</style>
<div class="content-left">
<div class="article-hot-l">
<h2 class="content-title">
编辑推荐
</h2>
<ul>
{yzn module="cms" action="lists" flag='4' catid="19" cache="3600" order="listorder ASC" num="8" return="data"}
{volist name="data" id="vo" key='index'}
<li>
<em>{$index}</em>
<a href="/news/{$vo.id}" class="transition">{$vo.title}</a>
</li>
{/volist}
{/yzn}
</ul>
</div>
<div class="article-hot-l" >
<h2 class="content-title">
热门文章
</h2>
<ul>
{yzn module="cms" action="lists" catid="19" cache="3600" order="hits desc" num="8" return="data"}
{volist name="data" id="vo" key='index'}
<li><em>{$index}</em>
<a href="/news/{$vo.id}" class="transition">{$vo.title}</a>
</li>
{/volist}
{/yzn}
</ul>
</div>
</div>