美文网首页
screen对象

screen对象

作者: 混吃等死小前端 | 来源:发表于2019-12-30 15:15 被阅读0次

    screen:表示屏幕的信息

    screen对象参考手册
    1、screen.widthscreen.height:屏幕宽高,以像素为单位;
    2、screen.availWidthscreen.availHeight:屏幕(不包括Windows任务栏的)宽高,以像素为单位;
    3、screen.colorDepth:返回颜色位数,如8、16、24。

    相关文章

      网友评论

          本文标题:screen对象

          本文链接:https://www.haomeiwen.com/subject/bqrmoctx.html