为什么有些css样式不起作用
为什么有些css样式不起作用
发布时间:2016-12-27 来源:查字典编辑
摘要:以下好像就是一段错误的代码-----a:hover{text-decoration:underline;color:blue}a:link{...

以下好像就是一段错误的代码-----

<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="http://www.jb51.net/">爱米</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="http://www.jb51.net/">爱米</a>

为什么它回这样

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

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

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

呵呵,说得不很切切,明白意思就OK。

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新 Div+Css教程学习
热门 Div+Css教程学习
网页设计子分类