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

来源:岁月联盟 编辑:exp 时间:2012-01-04
function setheight() 
    { 
    var div=document.getElementById("event_basicInfo"); 
    //div.style.width="40%"; 
    div.style.height=400; 
    div.style.overflow="auto"; 
    } 
    window.onload=setheight; 

摘自 Hurry的专栏