欢迎访问我的博客 https://javascript.shop

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>

posted @ 2017-07-13 00:12  孑孓子  阅读(133)  评论(0编辑  收藏  举报
欢迎访问我的博客 https://javascript.shop