css 里面,a标签里面的字体颜色怎么调?请详解!谢谢

如题所述

<!--在<head与</head标签中写CSS代码,代码完成后调用就可以了,看示例:--<html<head<title控制A标签中的链接文字</title
<style type="text/css"
.color{color:#3399CC; text-decoration:none;font-weight:bold;}/*链接设置*/
.color:visited{color:#3399CC; text-decoration:none;font-weight:bold;}/*访问过的链接设置*/
.color:hover{color:#CF0000; text-decoration:underline;font-weight:bold;}/*鼠标放上的链接设置*//*取消下划线只要把text-decoration:underline修改成text-decoration:none
文字加粗font-weight:bold 如不需要加粗显示,那么删除font-weight:bold;就可以了
其它更多的参数设置参考:css2.0手册 其中的"伪类"说明*/</style</head<body<a href="#" class="color"控制A标签内的文字颜色,并且带下划线</a<!-- class="color" 是调用定义的.color 样式--</body</html
温馨提示:答案为网友推荐,仅供参考
相似回答