滚动条:JavaScript 固定DIV高度,超出部分自动添加滚动条
更新时间:2012/10/15 点击:1275次
function setheight() { var div=document.getElementById(event_basicInfo); //div.style.width=40%; div.style.height=400; div.style.overflow=auto; } window.onload=setheight;
function setheight()
{
var div=document.getElementById("event_basicInfo");
//div.style.width="40%";
div.style.height=400;
div.style.overflow="auto";
}
window.onload=setheight;