zoukankan      html  css  js  c++  java
  • Repeater用ul li,一行显示多条数据

    原文发布时间为:2009-08-26 —— 来源于本人的百度文章 [由搬家工具导入]

    .rep {
             680px;
             float:left;
             list-style-type:none;
             overflow:hidden;
             padding:0;
              margin-left:0;
            }

            .rep li
            {
             165px;
             margin-left:2px;
             float:left;
             overflow:hidden;
             text-align:center;
            }
            .reptext
            {
                clear:both;
                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>

  • 相关阅读:
    79.Word Search
    78.Subsets
    77.Combinations
    75.Sort Colors
    74.Search a 2D Matrix
    73.Set Matrix Zeroes
    71.Simplify Path
    64.Minimum Path Sum
    63.Unique Paths II
    Docker 拉取 oracle 11g镜像配置
  • 原文地址:https://www.cnblogs.com/handboy/p/7153344.html
Copyright © 2011-2022 走看看