CSS样式表一(单独的CSS文件和在网页直接写CSS)

BODY {
 SCROLLBAR-FACE-COLOR: #ffffff; FONT-SIZE: 9pt; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #a7a7a7; SCROLLBAR-ARROW-COLOR: #a7a7a7; FONT-FAMILY: "宋体"; SCROLLBAR-DARKSHADOW-COLOR: #a7a7a7; buttonface: #666666
}
A:link {
 FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A:visited {
 FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A:hover {
 FONT-SIZE: 9pt; COLOR: #990000; FONT-FAMILY: "宋体"; TEXT-DECORATION: underline
}
A.black:link {
 FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.black:visited {
 FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.black:hover {
 FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #990000; FONT-FAMILY: "宋体"; TEXT-DECORATION: underline
}
A.blue:link {
 FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #ffffff; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.blue:visited {
 FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #ffffff; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.blue:hover {
 FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #FFFF00; FONT-FAMILY: "宋体"; TEXT-DECORATION: underline
}
A.b:link {
 FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #ff6633; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.b:visited {
 FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #ff6633; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.b:hover {
 FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #ff6633; FONT-FAMILY: "宋体"; TEXT-DECORATION: underline
}
A.nav:link {
 FONT-SIZE: 9pt; COLOR: #ffffff; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.nav:visited {
 FONT-SIZE: 9pt; COLOR: #ffffff; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.nav:hover {
 FONT-SIZE: 9pt; COLOR: #ffffff; FONT-FAMILY: "宋体"; TEXT-DECORATION: underline
}
TD {
 FONT-SIZE: 9pt; COLOR: #333333; LINE-HEIGHT: 19px; FONT-STYLE: normal; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
P {
 FONT-SIZE: 9pt; COLOR: #333333; TEXT-INDENT: 18pt; LINE-HEIGHT: 20px; FONT-STYLE: normal; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
UL {
 COLOR: #333333; TEXT-INDENT: 0pt; LINE-HEIGHT: 18px; LIST-STYLE-TYPE: square
}
LI {
 LIST-STYLE-IMAGE: url(none); COLOR: #333333; LIST-STYLE-TYPE: disc
}
.height1 {
 LINE-HEIGHT: 25px
}
.listmenu {
 COLOR: #37484d; HEIGHT: 17px; BACKGROUND-COLOR: #f5f8f8
}
.input_16 {
 FONT-SIZE: 9pt; COLOR: #333333; FONT-FAMILY: "宋体"; HEIGHT: 16px; BACKGROUND-COLOR: #ffffff
}
.input_18 {
 FONT-SIZE: 9pt; COLOR: #333333; FONT-FAMILY: "宋体"; HEIGHT: 19px; BACKGROUND-COLOR: #ffffff
}
.submit {
 BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; BORDER-LEFT: #666666 1px solid; COLOR: #112b41; BORDER-BOTTOM: #666666 1px solid; HEIGHT: 16px; BACKGROUND-COLOR: #fafafa
}
HR {
 BORDER-RIGHT: 365350px dotted; BORDER-TOP: 365350px dotted; BORDER-LEFT: 365350px dotted; COLOR: #365350; BORDER-BOTTOM: 365350px dotted
}
.line {
 BORDER-RIGHT: #dfecf7 1px dotted;
 BORDER-TOP: #dfecf7 1px dotted;
 BORDER-LEFT: #dfecf7 1px dotted;
 BORDER-BOTTOM: #dfecf7 1px dotted;
 line-height: 20px;
}
.bg {
 BACKGROUND-IMAGE: url(../images/bgline_1.gif); BACKGROUND-REPEAT: repeat-x
}
SELECT {
 BORDER-RIGHT: #bbbbbb 1px solid; BORDER-TOP: #bbbbbb 1px solid; BORDER-LEFT: #bbbbbb 1px solid; COLOR: #333333; BORDER-BOTTOM: #bbbbbb 1px solid; HEIGHT: 15px
}
.bg1 {
 BACKGROUND-POSITION: left 50%; BACKGROUND-ATTACHMENT: fixed; BACKGROUND-IMAGE: url(../manager/images/toppic.jpg); BACKGROUND-REPEAT: no-repeat
}
.button {
 FONT-SIZE: 12px; COLOR: #333333; HEIGHT: 18px; BACKGROUND-COLOR: #e6eaf3
}
.left1 {
 PADDING-RIGHT: 1px; PADDING-LEFT: 5px
}
.aa {
 FONT-SIZE: 12px; COLOR: #ff6600; TEXT-DECORATION: none
}
.left10 {
 PADDING-LEFT: 5px
}
.left15 {
 PADDING-RIGHT: 15px; PADDING-LEFT: 15px
}
.heiti {
 FONT-WEIGHT: 500; FONT-SIZE: 16px; COLOR: #066cd2; FONT-FAMILY: "黑体"; TEXT-DECORATION: none
}
.shenghong {
 COLOR: #990000; TEXT-DECORATION: underline
}
A.hong:link {
 COLOR: #990000; TEXT-DECORATION: underline
}
A.hong:hover {
 COLOR: #0066ff; TEXT-DECORATION: underline
}
A.hong:visited {
 COLOR: #990000; TEXT-DECORATION: underline
}
A.hong:active {
 COLOR: #993300; TEXT-DECORATION: underline
}
.hs {
 FONT-WEIGHT: 900; FONT-SIZE: 15px; COLOR: #c83f04; LINE-HEIGHT: 19px; FONT-FAMILY: "楷体_GB2312"; TEXT-DECORATION: none
}
A.hydt:link {
 FONT-WEIGHT: 600; FONT-SIZE: 9pt; COLOR: #0066ff; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.hydt:visited {
 FONT-WEIGHT: 600; FONT-SIZE: 9pt; COLOR: #0066ff; FONT-FAMILY: "宋体"
}
A.hydt:hover {
 FONT-WEIGHT: 600; FONT-SIZE: 9pt; COLOR: #996600; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.hydt:active {
 FONT-WEIGHT: 600; FONT-SIZE: 9pt; COLOR: #0066ff; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
.left35 {
 PADDING-LEFT: 35px
}
.listdh {
 WIDTH: 140px; HEIGHT: 22px
}
.zhong14 {
 FONT-WEIGHT: 600; FONT-SIZE: 9pt; COLOR: #cc0000; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.lv:link {
 FONT-WEIGHT: 600; FONT-SIZE: 9pt; COLOR: #0066ff; FONT-FAMILY: "宋体"
}
A.lv:hover {
 FONT-WEIGHT: 600; FONT-SIZE: 9pt; COLOR: #996600; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.lv:active {
 FONT-WEIGHT: 600; FONT-SIZE: 9pt; COLOR: #0066ff; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A.lv:visited {
 FONT-WEIGHT: 600; FONT-SIZE: 9pt; COLOR: #0066ff; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
.STYLE7 {
 color: #FFFFFF;
 font-size: 10pt;
}


将以上代码存为style.css,然后链接到网页,链接语句:

有时,网页只需简单的样式表,可直接在网页内写几行,而不用单独的样式表CSS文件,如下:




 

 

 

你可能感兴趣的:(CSS样式表一(单独的CSS文件和在网页直接写CSS))