ITeye博客

[Javascript]三個好用的Height,Width屬性

李学力 · 2010-12-13 18:31 · JavaScript · Web前端 · JavaScript · Markdown

document.write("document.documentElement.clientHeight:" + document.documentElement.clientHeight + "<br/>");
    document.write("document.documentElement.clientWidth:" + document.documentElement.clientWidth + "<br/>");

    document.write("window.screen.height:" + window.screen.height + "<br/>");
    document.write("window.screen.width:" + window.screen.width + "<br/>");

    document.write("window.screen.availHeight:" + window.screen.availHeight + "<br/>");
    document.write("window.screen.availWidth:" + window.screen.availWidth + "<br/>");

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。