首页 > 其他 > 详细

模仿大众点评过滤框

时间:2015-07-09 11:16:25      阅读:190      评论:0      收藏:0      [点我收藏+]

相关的js代码:

$('#control-part-1').click(function(){
                    $(this).css('backgroundColor','#fff');
                    $('#part-1').css('display','block');
                    $(this).siblings().css('backgroundColor','#eee');
                    $('#part-1').siblings('.right-part').css('display','none');
                });
                $('#control-part-2').click(function(){
                    $(this).css('backgroundColor','#fff');
                    $('#part-2').css('display','block');
                    $(this).siblings().css('backgroundColor','#eee');
                    $('#part-2').siblings('.right-part').css('display','none');
                });
                $('#control-part-3').click(function(){
                    $(this).css('backgroundColor','#fff');
                    $('#part-3').css('display','block');
                    $(this).siblings().css('backgroundColor','#eee');
                    $('#part-3').siblings('.right-part').css('display','none');
                });
                $('#control-part-4').click(function(){
                    $(this).css('backgroundColor','#fff');
                    $('#part-4').css('display','block');
                    $(this).siblings().css('backgroundColor','#eee');
                    $('#part-4').siblings('.right-part').css('display','none');
                });
我的:
技术分享

大众点评的:

技术分享

版权声明:本文为博主原创文章,未经博主允许不得转载。

模仿大众点评过滤框

原文:http://blog.csdn.net/u011011025/article/details/46813571

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!