zoukankan      html  css  js  c++  java
  • 一个还不错的gridview 样式【Z】

        <style type="text/css">
        <!--
        .datable {background-color: #9FD6FF; color:#333333; font-size:12px;}
        .datable tr {height:20px;}
        .datable .lup {background-color: #C8E1FB;font-size: 12px;color: #014F8A;}
        .datable .lup th {border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF;font-weight: normal;}
        .datable .lupbai {background-color: #FFFFFF;}
        .datable .trnei {background-color: #F2F9FF;}
        .datable td {border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF;}
        -->
        </style>
    <asp:GridView ID="GridView1" runat="server"  Width="1200px"  CssClass="datable" border="0" CellPadding="2" CellSpacing="1" OnRowDataBound="GridView1_RowDataBound" AutoGenerateColumns="False">
        <RowStyle CssClass="lupbai" />
        <HeaderStyle CssClass="lup" />
        <AlternatingRowStyle CssClass="trnei" />
        <Columns>
            <asp:BoundField DataField="mac_id" HeaderText="登陆计算机">                                                                
                <HeaderStyle Width="100px" />
            </asp:BoundField>
            <asp:BoundField DataField="u_id" HeaderText="用户代号">
                <HeaderStyle Width="100px" />
            </asp:BoundField>
            <asp:BoundField DataField="op_time" HeaderText="时间" HtmlEncode="False">
                <HeaderStyle Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="op_system" HeaderText="字系统名称">
                <HeaderStyle Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="op_type" HeaderText="操作类型">
                <HeaderStyle Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="op_number" HeaderText="操作数量">
                <HeaderStyle Width="50px" />
            </asp:BoundField>
            <asp:BoundField DataField="op_content" HeaderText="操作内容">
                <HeaderStyle Width="400px" />
            </asp:BoundField>
        </Columns>
    </asp:GridView>

    转自:http://blog.csdn.net/ycyangcai/article/details/3519499

  • 相关阅读:
    SQL Server 日期函数:某天是星期几?
    DZNEmptyDataSet,优秀的空白页或者出错页封装
    SVN文件排除
    Android开发艺术探索读书笔记——进程间通信
    HDU 2110 Crisis of HDU
    Android4.4之后休眠状态下Alarm不准时的问题
    Android App性能測试
    Java笔试面试题整理第一波
    美国大学计算机专业
    js 開始时间,当前时间,结束时间的比較
  • 原文地址:https://www.cnblogs.com/maijin/p/4554446.html
Copyright © 2011-2022 走看看