网页链接颜色问题
来源:百度知道 编辑:UC知道 时间:2024/06/13 03:17:32
页面属性是整个页面一样的颜色,总不能整个页面样色一样吧?在那里改啊,或者说一下代码,给全部分 只有15了
css代码:
a:link,a:visited {
color:#xxxxxx;
}
a:hover {
color:#xxxxxx;
}
xxxxxx你想要的颜色的16进制编码,这个是总的,单个显示的话,要定义样式了
<!--
.style1 a:link,a:visited {
color:#xxxxxx;
}
.style1 a:hover {
color:#xxxxxx;
}
-->
<a class="style1" href="xx.html">链接</a>
把css代码放到<!--css代码-->之间
例如:
<head>
<!--
body {
font-size:12px;
text-align:center;
margin:0 auto;
}
#wrap {
margin:0;
width:950px;
}
.style1 a:link,a:visited {
color:#xxxxxx;
}
.style1 a:hover {
color:#xxxxxx;
}
-->
</head>