打印本文 打印本文 关闭窗口 关闭窗口
超链接相关问题
作者:武汉SEO闵涛  文章来源:敏韬网  点击数661  更新时间:2009/4/23 13:50:24  文章录入:mintao  责任编辑:mintao

以下问题用上了css。
如何去掉下划线?若想在整页中都去掉,在<head>与</head>之间加上
<style>
<!--
a {text-decoration: none}
-->
</style>
若只对特定链接使用,则链接语法为
<a href=http://www.ddvip.com/web/html/index1/"你的链接" 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}
 

打印本文 打印本文 关闭窗口 关闭窗口