已采纳回答 / MrTreasure
因为document.documentElement.scrollHeight获取的是页面的高度,这个练习中页面高度只有344px;所以只有那么小。改成oMask.style.height=wHeight+"px";就好了
2016-09-26
已采纳回答 / qq_雨沐绘澜风_0
你的offsetWidth和offsetHeight写反了,应该是var oWidth = oLogin.offsetWidth;var oHeight =oLogin.offsetHeight;
2016-07-04