jQuery css() function changing 'a' property not 'a:hover' property

前端 未结 5 821
小蘑菇
小蘑菇 2021-01-05 05:49

I\'m having a bit of trouble with the jQuery css() function at the moment. It is changing the css value of the anchor element\'s border-top-color i

5条回答
  •  孤城傲影
    2021-01-05 06:39

    add !important to the hover css to avoid the style is overrided. for example:

    test:hover {
        border: 1.5px solid white !important;
        color: white !important;
    }

提交回复
热议问题