一个非常不错的gridview 风格
2015-06-22 14:57
316 查看
<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>
<!--
.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>
相关文章推荐
- maven web项目不能创建src/main/java等文件夹的问题
- 日语学习之沪江N3基础 20150622 -5
- [Swust OJ 794]--最近对问题(分治)
- 最具颠覆力的十大黑科技,你最期待哪一个?
- matlab r2014a 和vs产品交叉编译问题
- hdu2680Choose the best route dijkstra
- nginx 启动时出现 error while loading shared libraries: libpcre.so.1的错误
- 类——属性
- HDU---1176-免费馅饼(DP)
- python学习-subprocess模块
- 树上10只鸟,开枪打死1只,还剩几只?
- 文章标题
- joomla如何离线升级
- js模块化加载(requirejs)
- TCP/IP协议族-----9、网际控制报文协议(ICMP)
- 详解Zend Framework1的MVC结构
- muduo网络图书馆评测
- BZOJ 1124 POI2008 枪战Maf 贪心
- 黑马程序员----传说中的Java
- mysql 一次死锁的处理