用jQuery模拟hover选择效果

        $(function () {

            $('.head_info,.head_right').mouseenter(function () {
                $(this).css({'background-color':'rgba(255,255,255,0.2)','text-    decoration':'none'}).siblings().css('opacity','1')})

            $('.head_info,.head_right').mouseleave(function () {
                $(this).css('background-color','#2459a2')
                }
            )
        })

 

posted @ 2019-03-26 13:07  新手码农__威  阅读(1233)  评论(0编辑  收藏  举报