一个还不错的gridview 样式【Z】
2015-06-05 13:49
696 查看
<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
相关文章推荐
- 超链接标签简单的几个样式属性
- 编写html和css可以直接查看的网址
- 修改TabControl的样式(SilverLight)
- 【css】ie6 和 ie7 下 position 与 overflow 的问题
- 【css】ie6 和 ie7 下 position 与 overflow 的问题
- css清楚浮动的方法
- 通过CSS3,实现元素覆盖效果
- css3 background
- CSS光标属性
- iOS开发 设置状态栏样式
- 使用 CSS 显示 XML
- CSS3 animation/transform
- CSS文本溢出显示省略号
- [html][css]我的编码习惯
- CSS 字体
- CSS Text文本格式
- CSS 背景
- 神奇的overflow:hidden及其背后的原理
- CSS 创建
- css