首页  >  文章  >  web前端  >  JQuery切换显示的效果实例代码_jquery

JQuery切换显示的效果实例代码_jquery

WBOY
WBOY原创
2016-05-16 17:41:201104浏览

JQuery真的太强大了,真好看!

Jquery代码如下:

复制代码 代码如下:

 $(function () {
       $(".n_zyb_gzright .n_zyb_gzrightlist").hover(function () {
       $(this).find(".n_zyb_gzrightlistc").attr("style", "display:block").parent().siblings().find(".n_zyb_gzrightlistc").attr("style", "display:none");
    })
})

Html代码如下:

复制代码 代码如下:

       
                           

                               
                                    我们都能幸福着
人气:1
                               

                               

                               

                                   

                                       
                                            JQuery切换显示的效果实例代码_jquery

                                   

                                        jstu001

                                       
                                            作品:18
  

                                   

                                   

                               

                           

                           

                               
                                    开心就好了。
人气:1
                               

                               

                               
                           

                           

                               
人气:0
                               

                               

                               
                           

                   

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn