登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

面包会有的

... ...

 
 
 

日志

 
 

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

2008-05-12 10:06:44|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

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,然后链接到网页,链接语句:<link href="style.css" rel="stylesheet" type="text/css" />

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

<STYLE type=text/css>

BODY {
 MARGIN-TOP: 0px; BACKGROUND-IMAGE: url(../common/pub_image/beijing.gif); MARGIN-BOTTOM: 0px
}
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
}
tr.TableRow1 {
 background-color:#FFFFFF;
 height: 25;
 padding-right: 5px;
 padding-left: 5px;
 cursor: default;
}
tr.TableRow2 {
 background-color: #EEEEE6;
 height: 25;
 padding-right: 5px;
 padding-left: 5px;
 cursor: default;
}
tr.TableTitle {
 background-color: #EEEEE6;
 height: 25;
 padding-right: 5px;
 padding-left: 5px;
 cursor: default;

}

</STYLE>


 

 

 

  评论这张
 
阅读(1836)| 评论(0)

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018