<style type="text/css">
<!--
a:link { text-decoration: none;color: blue}
a:active { text-decoration:blink}
a:hover { text-decoration:underline;color: red}
a:visited { text-decoration: none;color: green}
-->
</style>
a:link 指正常的未被访问过的链接;
a:active 指正在点的链接;
a:hover 指鼠标在链接上;
a:visited 指已经访问过的链接;
text-decoration是文字修饰效果的意思;
none参数表示超链接文字不显示下划线;
underline参数表示超链接的文字有下划线
none表示没下划线
本文深入解析CSS中a元素的四种状态(正常、活动、悬停、已访问)及其对应的文字修饰效果,包括下划线、颜色变化等。详细解释了text-decoration属性的作用及none、underline参数的用法。
3043

被折叠的 条评论
为什么被折叠?



