关于百度空间CSS的问题

来源:百度知道 编辑:UC知道 时间:2024/06/07 00:19:23
编辑CSS时, 怎样定义所有超链接(不管是在哪个模块中)的属性

是直接输入a:link后面省略................
但是不好使啊

在空白处加入:

#main a{color:#******}

可以定义空间内容(模块)部分的所有连接,

同理:
#main a:visited{color:#******}

可以定义所有点击过的连接。

百度空间的CSS模板代码html,body,h1, h2, h3, h4, h5,h6,div,span,p,ul,li,label,form {margin:0px;padding:0px;font-size:12px;letter-spacing: 0;word-spacing: 0;}
body{
font-size:12px;
line-height:1.8;
font-family:Verdana, "宋体", Arial,Sans;
text-align:center;
color:#5E3304;
background-color: #FFF8CE;
background-image: url(http://www.zishu.cn/attachments/month_0610/l20061027232840.jpg);
background-repeat: repeat-x;
}
a:link,a:visited{color:#5E3304; text-decoration: underline;}
a:hover,a:active{color:#FF3300;text-decoration: underline;}
ul,li{ list-style:none;}
img{ border:0;}
#header .tit{ margin:20px 0 0 15px; }
#header .desc{