How to get css hover values on click?

前端 未结 4 791
你的背包
你的背包 2021-01-28 12:08

Following up on this question, I have another issue - how to get css hover values when you click on a text link?

For instance, I have these values for the text hover

4条回答
  •  迷失自我
    2021-01-28 12:39

    The right way to do this seems like it would be to create a style tag and re-assign the hover property directly. I have a working example here.

    (Credit where credit is due -- I got that from a function defined here)

提交回复
热议问题