DOM获取分辨率

screen.width表示屏幕的宽度,screen.height表示屏幕的高度

如下:

<input type="button" value="分辨率" onclick="alert(screen.width+'*'+screen.height)">

显示的结果为:1280*1024

posted on 2013-05-20 11:34  天上星  阅读(441)  评论(0编辑  收藏  举报

导航