用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')
                }
            )
        })
原文地址:https://www.cnblogs.com/zhuzhiwei-2019/p/10599470.html