日期:2013-11-28  浏览次数:20704 次

 

以下问题用上了css。
如何去掉下划线?若想在整页中都去掉,在<head>与</head>之间加上
<style>
<!--
a {text-decoration: none}
-->
</style>
若只对特定链接使用,则链接语法为
<a href="你的链接" style=text-decoration: none></a>如何使鼠标放到有超级链接的字体时出现字体颜色变化?

在<head>与</head>之间加上
<style>
<!--
a:link {color:$}
a:visited {color:$}
a:active {color:$}
a:hover {color:$}
-->
</style>
其中link是超链接的颜色,visited是访问过的链接颜色,hover是鼠标移上去的颜色。把$换成你需求的颜色,例如black或#000000。还可与下划线一同使用,如 a:hover{color:$;text-decoration: none}