//css样式的书写
//元素ID
#tb1{width:100%;height:80px;background-color:#FFD700;padding:4px;font-family:verdana,tahoma;font-weight:bold;}
#tb2{width:100%;padding:4px;font-family:verdana,tahoma;margin:12px 0px 0px 0px;background-color:#EEEEEE;font-weight:bold;}
//类
.test{cursor:hand;
border-right: white thin inset;
border-top: black thin inset;
border-left: black thin inset;
border-bottom: white thin inset;
}
.post1
{
cursor:move; background:red; color:Navy; border-right: black thin inset;
}
//元素
body
{
background-color:Gray:
}
// css styles using
<HTML>
<head runat = "Server">
<title> Untitled Page </ title>
// introduced css style file
<link type = "text / css " rel = "stylesheet" href = StyleSheet .css />
</ head>
application, the element name // automatically apply the same style element
<body>
<form ID = "Form1" the runat = "Server">
<div>
application element ID style //
<table id = "TB1" border =. 1; type = "font-size; 13pt; align = left; Center;">
<TR>
// own style using css style style =
<td style = "width: 134px ; height: 19px"> dsfdf < / TD>
</ TR>
</ Table>
</ div>
<Table ID = "TB2" style = "width: 168px">
<TR>
// style class of applications
<td class = "post1">啊啊啊啊啊啊啊啊</td>
</tr>
</table>
</form>
</body>
</html>
Reproduced in: https: //www.cnblogs.com/salonliudong/archive/2007/02/28/659052.html