Dr新建超级链接样式如何命名与之前的超级链接样式区别开来

来源:百度知道 编辑:UC知道 时间:2024/09/18 18:46:33

给超级连接单独定义的方法举例:
如果你之前写了个样式
a:link {color:#f00; text-decoration:none:}
a:visited {color:#800;}
a:hover {color:#f60; text-decoration:underline;}
现在另外一个地方用到别的超链样式:
.other a:link {color:#000; text-decoration:underline:}
只要把超链接的上一层的样式名写上就可以了。
现在的效果:只要是.other 下面的样式都是a:link {color:#000; text-decoration:underline:}个了。