// Css style Writing
// Element 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 ;}
// Class
. 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;
}
// Element
Body
{
Background-color: Gray:
}
// Use CSS styles
<HTML>
<Head runat = "server">
<Title> No title page </title>
// Introduce the CSS style File
<Link type = "text/CSS" rel = "stylesheet" href = stylesheet.css/>
</Head>
// Apply a style element with the same name
<Body>
<Form ID = "form1" runat = "server">
<Div>
// Apply the style element ID
<Table id = "tb1" border = 1; type = "font-size; 13pt; align; center;">
<Tr>
// Use CSS style = style by yourself
<TD style = "width: 134px; Height: 19px"> dsfdf </TD>
</Tr>
</Table>
</Div>
<Table id = "tb2" style = "width: 168px">
<Tr>
// Apply the Style Class
<TD class = "post1"> ah </TD>
</Tr>
</Table>
</Form>
</Body>
</Html>