首页 > 开发 > CSS > 正文

为什么有些css样式不起作用

2024-07-11 08:27:10
字体:
来源:转载
供稿:网友
以下好像就是一段错误的代码-----

<style type ="text/css">
<!-
a:hover{text-decoration:underline;color:blue}
a:link{text-decoration:underline;color: red}
a:visited{text-decoration:green}
->
</style>

<a href="https://www.Vevb.com/">爱米</a>

这是正确的代码---------

<style type ="text/css">
<!-
a:link{text-decoration:underline;color: red}

a:hover{text-decoration:underline;color:blue}
a:visited{text-decoration:green}
->
</style>

<a href="https://www.Vevb.com/">爱米</a>

为什么它回这样

1,首先有链接---没有有链接,还有鼠标在上面的效果?

2,第二步才能有鼠标在上面的效果------鼠标没有在上面或者没有取得焦点,怎么能有后面的点击后的效果?

3,最后才有点击后的效果。

呵呵,说得不很切切,明白意思就OK。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表