感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Css链接 链接文本修饰 链接的背景色</title>
<style>
a:link{color: black;text-decoration: none;background-color:aqua}/*未访问链接*/
a:visited{color: aqua;text-decoration:none}/*已访问链接*/
a:hover{color: brown;text-decoration: underline}/*鼠标移动到链接上*/
a:active{color: chartreuse;text-decoration: underline}/*鼠标点击时*/
</style>
</head>
<body>
<p><b><a href="/Css/" target="_blank">这是一个链接</a></b></p>
<p><b>注意:</b>a:hover必须在a:link和a:visited之后,需要按严格顺序才能看到效果</p>
<p><b>注意:</b>a:active必须在a:hover之后</p>
</body>
</html>
输入 JavaScript 代码……
xxxxxxxxxx
输入 CSS 代码……