zoukankan      html  css  js  c++  java
  • 一个非常不错的gridview 风格

    1. <style type="text/css">
    2. <!--
    3. .datable {background-color: #9FD6FF; color:#333333; font-size:12px;}
    4. .datable tr {height:20px;}
    5. .datable .lup {background-color: #C8E1FB;font-size: 12px;color: #014F8A;}
    6. .datable .lup th {border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF;font-weight: normal;}
    7. .datable .lupbai {background-color: #FFFFFF;}
    8. .datable .trnei {background-color: #F2F9FF;}
    9. .datable td {border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF;}
    10. -->
    11. </style>

     

    1. <asp:GridView ID="GridView1" runat="server"  Width="1200px"  CssClass="datable" border="0" CellPadding="2" CellSpacing="1" OnRowDataBound="GridView1_RowDataBound" AutoGenerateColumns="False">
    2.                                                                 <RowStyle CssClass="lupbai" />
    3.                                                                 <HeaderStyle CssClass="lup" />
    4.                                                                 <AlternatingRowStyle CssClass="trnei" />
    5.                                                                 <Columns>
    6.                                                                     <asp:BoundField DataField="mac_id" HeaderText="登陆计算机">                                                                
    7.                                                                         <HeaderStyle Width="100px" />
    8.                                                                     </asp:BoundField>
    9.                                                                     <asp:BoundField DataField="u_id" HeaderText="用户代号">
    10.                                                                        <HeaderStyle Width="100px" />
    11.                                                                     </asp:BoundField>
    12.                                                                     <asp:BoundField DataField="op_time" HeaderText="时间" HtmlEncode="False">
    13.                                                                         <HeaderStyle Width="120px" />
    14.                                                                     </asp:BoundField>
    15.                                                                     <asp:BoundField DataField="op_system" HeaderText="字系统名称">
    16.                                                                        <HeaderStyle Width="120px" />
    17.                                                                     </asp:BoundField>
    18.                                                                     <asp:BoundField DataField="op_type" HeaderText="操作类型">
    19.                                                                         <HeaderStyle Width="120px" />
    20.                                                                     </asp:BoundField>
    21.                                                                     <asp:BoundField DataField="op_number" HeaderText="操作数量">
    22.                                                                         <HeaderStyle Width="50px" />
    23.                                                                     </asp:BoundField>
    24.                                                                     <asp:BoundField DataField="op_content" HeaderText="操作内容">
    25.                                                                         <HeaderStyle Width="400px" />
    26.                                                                     </asp:BoundField>
    27.                                                                 </Columns>
    28.                                                             </asp:GridView>

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  • 相关阅读:
    c#生成图片验证码
    关于Aspcms如何嵌入整个网站,以及网站导航所指向页面的内容显示
    web 验证控件
    MVC Link连接数据库增删改查方法的不同写法
    Mvc 翻页查询,代码很有用
    MVC添加分布视图做唯一验证
    MVc路由查询,路由到底有什么作用呢??
    MVC添加动态视图的参考代码。重点是添加部分视图的使用方法,非常有用的代码!!!!!!!!!!!!!!
    tyvj P1209
    bzoj 1051: [HAOI2006]受欢迎的牛 tarjan缩点
  • 原文地址:https://www.cnblogs.com/zfyouxi/p/4593306.html
Copyright © 2011-2022 走看看