为什么使用`* -device-width`
我不知道是否有权发布与先前已结束的问题类似的问题.它完全不同,所以我想尝试一下.
I dunno if its right to post a similar question to a previously closed one. Its quite different so I thought I'd try.
好,*-device-width
是针对具有特定宽度的设备(不是渲染区域). *-width
用于定位渲染宽度.因此,在设计时,并非总是要基于渲染区域进行定位,如果设备宽度为768,但浏览器镶边(例如)占据了该宽度的20px,那么如果我使用*-width
吗?
Ok, *-device-width
is to target devices (not rendering area) with a specific width. *-width
is to target the rendering width. So when designing, won't I always want to target based on rendering area, if the device width is say 768 but the browser chrome (for example) takes up 20px of that, then won't scroll bars appear if I use *-device-width
. So question is shouldn't I use *-width
every time?
假设下次平板电脑允许用户调整浏览器的大小,如果我使用*-device-width
,我的网站不会无响应"吗?
Suppose next time, tablets allow users to resize their browsers, wont my site be "unresponsive" if I use *-device-width
?