12月 29

如何去掉超链接下面讨厌的下划线? 晴

yaiba , 11:31 , 技术运用 , 评论(0) , 引用(0) , 阅读(1517) , Via 本站原创
你是否在编写你的网页时遇到了类似的困扰呢:在一个文本中添加了超链接之后,下面出现了下划线。有时候你是不想让这个下划线显示出来的,而且也不希望当鼠标滑过或者点击之后变颜色,那么好,你可以在你的html页开头处的2个
<header>
标签中间添加下面的CSS代码:


<style type="text/css">
<!--
a:link { color:#FFFFFF; text-decoration: none}
a:visited { color:#FFFFFF; text-decoration: none}
a:hover { color:#FFFFFF; text-decoration: none}
-->
</style>


如果你希望在适当的位置显示超链接下划线的话,可以将对应的text-decoration属性的值none更改为underline,如:

a:hover { color:#FFFFFF; text-decoration: underline}
Tags: ,
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]