[英]Device-width and screen.width & window.innerWidth
What the device-width
CSS3 property refers to? device-width
CSS3属性是指什么? Is it screen.width
or rather window.innerWidth
? 是
screen.width
还是window.innerWidth
?
window.innerWidth
确切地说,它仅适用于设备
Describes the width of the output device (meaning the entire screen or page, rather than just the rendering area, such as the document window).
描述输出设备的宽度(表示整个屏幕或页面,而不仅仅是渲染区域,例如文档窗口)。
And this question : 这个问题 :
max-device-width is the width of the device's entire rendering area, ie the actual device screen
max-device-width是设备整个渲染区域的宽度,即实际的设备屏幕
Therefore it's screen.width
. 因此它是
screen.width
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.