JavaScript 固定DIV高度,超出部分自动添加滚动条

function setheight()
	{
	var div=document.getElementById("event_basicInfo");
	//div.style.width="40%";
	div.style.height=400;
	div.style.overflow="auto";
	}
	window.onload=setheight;

 

你可能感兴趣的:(JavaScript,function,div)