Menu
×
×
正确!
CSS 练习:将未访问链接的颜色设置为“红色”,将已访问链接的颜色设置为“蓝色”。 提示:四个链接状态是:a:link、a:visited、a:hover、a:active |
编辑此代码:
x
<html> <head> <style> /* mouse over link */ a:hover { color: black; } /* selected link */ a:active { color: green; } </style> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> <p><a href="https://www.w3schools.com">W3Schools.com</a></p> </body> </html> 结果:
|
正确的代码:
xxxxxxxxxx 结果:
|