使用jQuery获取本机屏幕分辨率 [英] Get native screen resolution using jQuery
本文介绍了使用jQuery获取本机屏幕分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想获取设备上的本机屏幕宽度以在DOM中添加脚本.可以使用jQuery吗?
I'd like to get the native screen width on a device to append scripts in the DOM. Is it possible using jQuery ?
谢谢
推荐答案
window.screen.width
?来源: https://developer.mozilla.org/zh-CN/docs /DOM/window.screen
这篇关于使用jQuery获取本机屏幕分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文