<div id="up">xxxxx</div>
<div id="down"></div>
[size=medium][color=red][b]点击up时up会显示或隐藏[/b][/color][/size]
function showorhide(){
// 显示
if($("#up").is(":hidden")){
$("#up").show("slow",function(){
$("#down").css("height",all-$("up").height());
});
}else{
$("#up").hide("slow",function(){
$("#down").css("height",all+$("up").height());
})
}
}