为什么使用`* -device-width` [英] Why use `*-device-width`

查看:103
本文介绍了为什么使用`* -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?

推荐答案

您可以在

You shall find a decent explanation at this link. Scroll down to about the middle of the page.

这篇关于为什么使用`* -device-width`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆