如题:
function change(){
// alert("我在改变");
var current_height = ($(window).height()-200)+"px";
alert(current_height);
$("#c1"),attr("height",'current_height'); //改成("height",current_height)也没效果!!!!
$("#c2"),attr("height",'current_height');//改成("height",current_height)也没效果!!!!
}
怎么把动态改变的current_height值赋给height属性、、、
ringa_lee2017-04-11 12:12:27
on change(){
// alert("我在改变");
var current_height = ($(window).height()-200)+"px";
alert(current_height);
$("#c1").css("height",current_height);
$("#c2").css("height",current_height);
}