当前位置: 移动技术网 > IT编程>开发语言>.net > asp.net 新闻列表样式代码

asp.net 新闻列表样式代码

2017年12月12日  | 移动技术网IT编程  | 我要评论

爱卡巴,移动迷宫3下载,景德镇长途汽车站

新闻列表:
复制代码 代码如下:

<div class="news_list">
<asp:repeater id="gsxw" runat="server" datasourceid="getnewsbytype">
<itemtemplate>
<ul> <li><span>
<%# convert.todatetime(eval("ntime")).toshortdatestring()%></span><a
href='newdetails.aspx?type=<%=num %>&&id=<%# eval("id") %>&&page=0'>·<%# eval("ntitle") %></a></li>
</ul></itemtemplate>
</asp:repeater>
</div>

css文件:
复制代码 代码如下:

.news_list { width:752px; padding:10px 10px;clear:both; padding:0px; line-height:170%;}
.news_list a:hover{ color:#2c4900; font-weight:700;}
.news_list p { float:left; border:1px solid #e4e4e4; padding:4px; margin-right:10px;}
.news_list dl { color:#008804; line-height:25px; font-weight:700;}
.news_list dd { color:#666666; line-height:22px; text-indent:24px;}
.news_list li { color:#0f5300; line-height:28px; text-indent:5px; border-bottom:1px dashed #cfcfcf;}
.news_list a { color:#0f5300;}
.news_list span { color:#a3dc01; float:right;}

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网