欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!

在上面的例子中,链接根据其状态改变颜色。

让我们看看其他几种常见的设置链接样式的方法:

文本修饰

text-decoration 属性大多用于去掉链接中的下划线:

实例

a:link {text-decoration:none;}
a:visited {text-decoration:none;}
a:hover {text-decoration:underline;}
a:active {text-decoration:underline;}

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/css-texiao/texiao52202.shtml