max-widht指展示的最大寬度,一般是瀏覽器窗口寬度。
max-device-width是指所展示使用的設(shè)備支持寬度
查到的是這樣的解釋的
但我現(xiàn)在不明白的是,這兩個都是根據(jù)設(shè)備的分辨率來的了還是其他的什么了總覺得很混淆
再則說到的max-device-width是屏幕寬度,到底是指分辨率的寬度,還是視口的寬度
如果是指適口的寬度,那max-width和max-device-width不就是指的一個寬度么
兩者之間的區(qū)別到底是什么了???
走同樣的路,發(fā)現(xiàn)不同的人生
max-width
is the maximum width of the display, but it is not the browser width. You can set max-width very large, beyond the browser window width. max-device-width
is the screen width, usually the width of the resolution.
In viewport, there are layout viewport and visible viewport. max-width is to set the maximum width of the layout viewport, and max-device-width is to set the maximum width of the visible viewport.
Please read this article, it may be helpful.
http://www.adobe.com/cn/devne...