為什么有些css代碼沒(méi)作用,比如下列代碼,和排列有關(guān).把css代碼使用順序換一下就可以了.
以下好像就是一段錯(cuò)誤的代碼-----
<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 >愛(ài)米</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 >愛(ài)米</a>
為什么它回這樣
1,首先有鏈接---沒(méi)有有鏈接,還有鼠標(biāo)在上面的效果?
2,第二步才能有鼠標(biāo)在上面的效果------鼠標(biāo)沒(méi)有在上面或者沒(méi)有取得焦點(diǎn),怎么能有后面的點(diǎn)擊后的效果?
3,最后才有點(diǎn)擊后的效果。
呵呵,說(shuō)得不很切切,明白意思就OK。
如對(duì)本文有疑問(wèn),請(qǐng)?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會(huì)為你解答??! 點(diǎn)擊進(jìn)入論壇