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);});});
?