我们要定义链接样式,所以其中必不可少的就是超级链接中的a标签,a标签和伪类链接起来书写的方法就是定义链接样式的基础方法,它们的写法如下:
a:link
a:visited
a:hover
a:active
实例:
<style>a:link {color:red;text‐decoration:underline;}a:visited {color:blue;text‐decoration:none;}a:hover {color:pink;text‐decoration:none;}a:active {color:green;text‐decoration:none;}</style>
学习过程中的一点归纳,希望对大家有用
/qa/5f3167405dbb8a6ce1bb9ac7.html