Repeater控制显示列数

 

<head runat="server">
    <title></title>
   <style type="text/css">
        ul
        {
            list-style-type:none;
            width:800px;
        }
        #ulImg li
        {
            float:left;
            width:33%;
            margin-bottom:8px;
        }
        body
        {
            font-size:small;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Repeater ID="Repeater1" runat="server">
            <HeaderTemplate>
                <ul id="ulImg">
            </HeaderTemplate>
            <ItemTemplate>
                <li>
                    <img src='<%#eval_r("PhotoSrc") %>' alt='<%#eval_r("StaffName")%>' width="80px"

                     height="80px" /><br />
                    <%#eval_r("StaffName") %>
                </li>
            </ItemTemplate>
            <FooterTemplate>
                </ul>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>

上一篇:NIS企业级应用案例-统一Linux和Windows身份验证(二)


下一篇:windows Azure 域名绑定