开发者

Find Hover CSS Attribute

开发者 https://www.devze.com 2022-12-12 00:54 出处:网络
Lets say I had开发者_Go百科 an element with multiple classes, one of these classes has a hover pseudo-class. Lets say this will change the colour.

Lets say I had开发者_Go百科 an element with multiple classes, one of these classes has a hover pseudo-class. Lets say this will change the colour.

So what I want to do is find out what colour the element will change to when hovered over. Then I want to override this with Javascript/jQuery.


The animateToSelector jQuery plug-in seems to do what you want.

I found that plug-in through another question on StackOverflow. Also have a look at this question to see there isn't really any other way to do it but by going through document.styleSheets.

0

精彩评论

暂无评论...
验证码 换一张
取 消