DIV repeater 全表格

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication2.WebForm1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
      
        .divll
        {
         width:100px;
         }
         
          .table /**/ /**/ /*div table container*/ /*div table container*/
        {
            /**/ /*width:770px;*/
        }
        .row div /**/ /**/ /*div row cell*/ /*div row cell*/
        {
            display: inline;
            width: 100%;
            border-top: 1px solid #C1BBAB;
            border-left: 1px solid #C1BBAB;
        }
        .header div /**/ /**/ /*div header cell*/ /*div header cell*/
        {
            display: inline;
            width: 100%;
            border-top: 1px solid #C1BBAB;
            border-left: 1px solid #C1BBAB;
            text-align: center;
            background-color: #E0DDD5;
        }
        .lastcell /**/ /**/ /*last cell*/ /*last cell*/
        {
            border-right: 1px solid #C1BBAB;
            width:100px;
        }
        .header /**/ /**/ /*div table hearder*/ /*div table hearder*/
        {
            font: bold;
            color: navy;
        }
        .grid_rw1clr div /**/ /**/ /*cell in grid_rw1clr*/ /*cell in grid_rw1clr*/
        {
            background-color: #FFFFFF;
        }
        .grid_rw2clr div /**/ /**/ /*cell in grid_rw1clr*/ /*cell in grid_rw1clr*/
        {
            background-color: #F9F8F6;
        }
        .row
        {
            font: normal 32px;
        }
        .lastrow div /**//*cell in last row*/
{
border-bottom:1px solid #C1BBAB;
}
       
    </style>
</head>
<body>
    <form id="form1" runat="server">
   
    <div>
         <asp:Repeater ID="Repeater1" runat="server">
            <HeaderTemplate>
                <div class="table">
                    <div class="header">
                        <div >
                            <asp:TextBox ID="TextBox1" class="divll" runat="server">Title</asp:TextBox>
                        </div>
                        <div >
                            <asp:TextBox ID="TextBox2" class="divll" runat="server">Artist</asp:TextBox>
                        </div>
                        <div >
                            <asp:TextBox ID="TextBox3" class="divll" runat="server">Country</asp:TextBox>
                        </div>
                        <div class="lastcell">
                            <asp:TextBox ID="TextBox4" Width="150px" runat="server">Company</asp:TextBox>
                        </div>
                    </div>
            </HeaderTemplate>
            <ItemTemplate>
                <div class="row grid_rw1clr lastrow">
                    <div >
                        <asp:TextBox ID="TextBox4" class="divll" runat="server" Text='<%# Eval("id")%>'></asp:TextBox>
                    </div>
                    <div >
                        <asp:TextBox ID="TextBox5" class="divll" runat="server" Text='<%# Eval("artist")%>'></asp:TextBox>
                    </div >
                    <div >
                        <asp:TextBox ID="TextBox6" class="divll" runat="server" Text='<%# Eval("country")%>'>Company</asp:TextBox>
                    </div>
                    <div class="lastcell">
                        <asp:TextBox ID="TextBox7" Width="150px" runat="server" Text='<%# Eval("company")%>'></asp:TextBox>
                    </div>
                 </div>
            </ItemTemplate>
                   
            <FooterTemplate>
                </div>
            </FooterTemplate>
        </asp:Repeater>
   
    </div>
    </form>
</body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值