首页 > 代码库 > Repeater用ul li,一行显示多条数据
Repeater用ul li,一行显示多条数据
原文发布时间为:2009-08-26 —— 来源于本人的百度文章 [由搬家工具导入]
.rep {
width:680px;
float:left;
list-style-type:none;
overflow:hidden;
padding:0;
margin-left:0;
}
.rep li
{
width:165px;
margin-left:2px;
float:left;
overflow:hidden;
text-align:center;
}
.reptext
{
clear:both;
width:165px;
height:25px;
line-height:25px;
overflow:hidden;
}
<ul class="rep">
<asp:Repeater ID="repTest" runat="server">
<ItemTemplate>
<li>
<div class="reptext"><%#Eval("ID")%></div>
<div class="reptext"><%#Eval("Name")%></div>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
Repeater用ul li,一行显示多条数据