Adding hover CSS attributes via jQuery/Javascript

后端 未结 4 616
离开以前
离开以前 2020-12-06 09:10

Some CSS styles need to be applied to an element on hover, and CSS styles have to be applied using javascript/jquery directly and not through stylesheets or $(this).ad

4条回答
  •  孤街浪徒
    2020-12-06 09:48

    $("#someObj").hover(function(){
        $(this).css(...);
    }:);
    

    http://api.jquery.com/hover/

提交回复
热议问题