首页 > 其他 > 详细

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

时间:2017-07-12 09:21:37      阅读:190      评论:0      收藏:0      [点我收藏+]

原文发布时间为: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,一行显示多条数据

原文:http://www.cnblogs.com/handboy/p/7153344.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!