在源代码的<head>和<head>之间加上如下的CSS语法控制:
<style type="text/css">
<!--
a:link { text-decoration: none;color: blue}
a:active { color: blue}
a:hover { text-decoration:underline;color: red}
a:visited { text-decoration: none;color: green}
-->
</style>
代码分析:
a:link 指正常的未被访问过的链接,blue 文字为兰色。
a:active 指正在点的链接。
a:hover 指鼠标在链接上,red 文字为红色。
a:visited 指已经访问过的链接,black 文字为黑色。
text-decoration 是文字修饰效果的意思。
none 参数表示超链接文字不显示下划线。
underline 参数表示超链接的文字有下划线。
去掉超链接的下划线
最新推荐文章于 2024-12-25 09:30:05 发布