代码改变世界

GridView 样式

2013-05-19 22:18  Tellme_C#  阅读(282)  评论(0编辑  收藏  举报

     .defaultGridV{border:solid 1px #8DB2E3; margin:2px auto;}
.defaultGridV th{ height:25px; line-height:25px; border:solid 1px #8DB2E3; text-align:center; color:#15428B; background-color:#D9E7F8}
.defaultGridV th a{ font-size:12px; color:#15428B; line-height:18px;text-decoration:none; font-weight:normal;}
.defaultGridV th a:hover{ font-size:12px; color:#15428B;line-height:18px;text-decoration:underline; font-weight:bold;}

.defaultGridV td{border:solid 1px #8DB2E3; margin:2px auto; height:20px; line-height:18px; padding:2px auto}

<AlternatingRowStyle BackColor="#E6F5FA"></AlternatingRowStyle>