用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')
                }
            )
        })

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM