How to write a:hover in inline CSS?

后端 未结 23 2558
孤城傲影
孤城傲影 2020-11-21 23:15

I have a case where I must write inline CSS code, and I want to apply a hover style on an anchor.

How can I use a:hover in inline CSS inside the HTML st

23条回答
  •  孤独总比滥情好
    2020-11-21 23:44

    Inline pseudoclass declarations aren't supported in the current iteration of CSS (though, from what I understand, it may come in a future version).

    For now, your best bet is probably to just define a style block directly above the link you want to style:

    
    Foo!
    

提交回复
热议问题