Repeater用ul li,一行显示多条数据

Posted 杰的记事本——javascript.shop

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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,一行显示多条数据的主要内容,如果未能解决你的问题,请参考以下文章