How get the :hover css style of an anchor with jQuery?

后端 未结 4 1214
挽巷
挽巷 2020-12-19 13:00

How can i get the :hover in css stylesheet on the fly with jquery?

stupid example:

a.foo {
    color: red;
    font-size: 11px;
}

a.foo:hover {
            


        
4条回答
  •  余生分开走
    2020-12-19 13:34

    Take a look at Extra selectors for jQuery.

    Also, you can use the hover event, depending on what you want to achieve. See: jQuery hover and class selector.

提交回复
热议问题