How to write a:hover in inline CSS?

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

    There is no way to do this. Your options are to use a JavaScript or a CSS block.

    Maybe there is some JavaScript library that will convert a proprietary style attribute to a style block. But then the code will not be standard-compliant.

提交回复
热议问题