1、自动获取高度
window.οnlοad=function()
{
var h=document.documentElement.clientHeight-185;//可见区域高度
ss=document.getElementById(‘tab’);
ss.style.height=h+”px”;
}
js 自定义div的高度
最新推荐文章于 2024-05-22 10:34:11 发布
1、自动获取高度
window.οnlοad=function()
{
var h=document.documentElement.clientHeight-185;//可见区域高度
ss=document.getElementById(‘tab’);
ss.style.height=h+”px”;
}