

|
function test(){ var infoHeight = document.getElementById("info").scrollHeight; var bottomHeight = document.getElementById("bottom").scrollHeight; var allHeight = document.documentElement.clientHeight; var bottom = document.getElementById("bottom"); if((infoHeight + bottomHeight) < allHeight){ bottom.style.position = "absolute"; bottom.style.bottom = "0"; }else{ bottom.style.position = ""; bottom.style.bottom = ""; } setTimeout(function(){test();},10); } test(); |
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
相关文章
最新评论共有 3 位网友发表了评论
发表评论
赛酷网·中国西部第一建站门户
阅读排行
最新下载