css+Dhtml+flash --> .GridViewStyle
{...}{
border-right:2pxsolid#A7A6AA;
border-bottom:2pxsolid#A7A6AA;
border-left:2pxsolidwhite;
border-top:2pxsolidwhite;
padding:4px;
}
.GridViewStylea
{...}{
color:#FFFFFF;
}
.GridViewHeaderStyleth
{...}{
border-left:1pxsolid#EBE9ED;
border-right:1pxsolid#EBE9ED;
}
.GridViewHeaderStyle
{...}{
background-color:#5D7B9D;
font-weight:bold;
color:White;
}
.GridViewFooterStyle
{...}{
background-color:#5D7B9D;
font-weight:bold;
color:White;
}
.GridViewRowStyle
{...}{
background-color:#F7F6F3;
color:#333333;
}
.GridViewAlternatingRowStyle
{...}{
background-color:#FFFFFF;
color:#284775;
}
.GridViewRowStyletd,.GridViewAlternatingRowStyletd
{...}{
border:1pxsolid#EBE9ED;
}
.GridViewSelectedRowStyle
{...}{
background-color:#E2DED6;
font-weight:bold;
color:#333333;
}
.GridViewPagerStyle
{...}{
background-color:#284775;
color:#FFFFFF;
}
.GridViewPagerStyletable/**//*tocenterthepaginglinks*/
{...}{
margin:0auto0auto;
}
以下为使用示例: 关键部分
<asp:GridViewCssClass="GridViewStyle"runat="server">
<FooterStyleCssClass="GridViewFooterStyle"/>
<RowStyleCssClass="GridViewRowStyle"/>
<SelectedRowStyleCssClass="GridViewSelectedRowStyle"/>
<PagerStyleCssClass="GridViewPagerStyle"/>
<AlternatingRowStyleCssClass="GridViewAlternatingRowStyle"/>
<HeaderStyleCssClass="GridViewHeaderStyle"/>
</asp:GridView>
GridView CSS的完整样式表
最新推荐文章于 2021-08-04 09:27:18 发布