Possible Dup开发者_运维知识库licate:
How to write a:hover in inline CSS?
Is it possible to do this:
<a href="#">link</a>
a{ color: red; }
a:hover{ color: blue; }
As inline?
<a href="#" style="color: red; ....;">link</a>
No. style=""
allows to define only list of style properties. No CSS selectors are allowed there.
精彩评论