How to write a:hover in inline CSS?

后端 未结 23 3115
孤城傲影
孤城傲影 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:33

    You can do this. But not in inline styles. You can use onmouseover and onmouseout events:

    Hover on me!

提交回复
热议问题