用循环子栏目标签及DIV+CSS实现一行显示两个栏目的效果
通用封面代码作如下修改:
您当前的位置:[!--newsnav--]
[listsonclass]'selfinfo',10,30,0,0,7,0,0[/listsonclass]
循环子栏目标签作如下修改:
1.变量说明处:
【[!--the.classname--]
】
[!--empirenews.listtemp--][!--empirenews.listtemp--]
[url=[!--the.classurl--]]更多>>[/url]
2.列表内容模板(list.var) 处:
[url=[!--titleurl--]][!--title--][/url] ([!--newstime--])
sking/default/css/style.css增加代码:
.main {
width: 630px;
}
.main ul{
padding: 5px 0px 0px 0px;
}
.main ul li{
padding: 2px 0px 0px 0px;
background: url(icon_li4.gif) no-repeat left 9px;
border-bottom: 1px solid #f4f4f4;
list-style: none;
text-indent: 12px;
}
.c1 {
width: 310px;
float: left;
margin: 0px 3px 0px 0px;
margin-bottom: 10px;
border: 0px solid #99CC00;
border-width: 1px 1px 1px 1px;
padding: 0px 0px 0px 0px;
}
.pad-all {
padding: 0px;
line-height: 26px;
}
.title2 {
background:url(../images/title_bg.gif) repeat-x left top;
margin : 0;
font-weight: bold;
padding: 0px 0px 0px 5px;
color: #00006C;
}
.more {
color: #666;
padding: 0px 0px 0px 250px;
}
.date {
font-size: 11px;
color: #666;
}
上传相关内容全面更新!!你就成功了!
|