读书人

jquery小结-下拉伸缩菜单和左移右移布

发布时间: 2012-07-04 19:33:54 作者: rapoo

jquery总结--下拉伸缩菜单和左移右移布局

$(document).ready(function() {alert(123);});

?完整代码

$(document).ready(function() {//伸缩下拉菜单$(".menu h3").click(function() {//$(".menu ul").hide();$(this).next().slideToggle();$(this).css("font-weight", "bold");});//点击中间布局,左拉和又拉$(".unfold").click(function() {$("#left").show();$("#left").width(174);$(".fold").show();$(this).hide();var width = $(window).width();$("#right").width(width - 185);});$(".fold").click(function() {$("#left").hide();$(".unfold").show();$(this).hide();var width = $(window).width();$("#right").width(width - 11);});});

?

读书人网 >移动开发

热点推荐