js固定DIV高度,超出部分自动添加滚动条的简单方法
(编辑:jimmy 日期: 2025/5/13 浏览:3 次 )
复制代码 代码如下:
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;
下一篇:javascript 手动给表增加数据的小例子