css table
<asp:GridView ID="GridView1" runat="server" Width="100%"
HorizontalAlign="Center" CellPadding="1" AutoGenerateColumns="False" AllowPaging="true"
CellSpacing="1" BorderWidth="0px" BackColor="#6594D1"
onrowdatabound="GridView1_RowDataBound" onsorting="GridView1_Sorting"
onselectedindexchanging="GridView_SelectedIndexChanging" AllowSorting="True">
<AlternatingRowStyle CssClass="TD-BG-LAN" BackColor="#ffffef" BorderColor="#ffffff"></AlternatingRowStyle>
<RowStyle CssClass="TD-BG-BAI" BackColor="white" Height="22"></RowStyle>
<HeaderStyle HorizontalAlign="Center" CssClass="TR-LAN" BackColor="#CCCC99" Height="24"></HeaderStyle>
<Columns>
<asp:CommandField ShowSelectButton="true" HeaderStyle-Width="5%"
&n
相关文档:
内部样式表
内部样式表需要在网页的<head>部分定义,格式如下:
<head>
<style type="text/css">
/*符合CSS语法结构的CSS语句,例如*/
body { background-color: blue; }
</style>
</head>
行内样式表(内嵌样式表)
行内样式表直接在标签内部定义,使用style属性,写法如下:
......
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
#wai{
width:500px;
height:500px;
background-color: #990;
}
#nei {
float:left;
width:200p ......
一个网站的优化有很多工作要做,其中对代码的优化是一个很关键的步骤。为了更加符合SEO的规范,下面将对目前流行的DIV+CSS的命名规则整理如下:
页头:header 登录条:loginBar
标志:logo & ......