1. 首页
  2. css

CSS带宽媒体查询

他们不存在。但那不是很好吗?以正在讨论的元素的标记为例:

I\”m 100% on board with this idea. Let\”s serve up images we want to under the circumstances we declare. But is screen width the correct metric to use here? Perhaps it is, why would a screen that is 400px wide ever need an image that is larger than 400px wide? Well I think the retina display on certain new devices are answering that question for us. Those devices may respond to certain width media query but really have twice the pixels available and be able to show much sharper images. Yes, we have device-pixel-ratio媒体也对此进行了查询,但我仍然认为我们在围绕这个问题跳舞。
这个问题是:带宽。如果我在一个网速超慢的地方/设备上,我希望有一个很轻的网页,这样浏览速度还是可以接受的。如果我在一个拥有超高速互联网的地方/设备上,一定要加快速度,给我提供更多的信息。
类似这样的信息:
/* Fair warning: these aren\”t \”real\” */@media (min-bandwidth: 25Mbps) {/* High bandwidth, bring it on! */}@media (max-bandwidth: 10Mbps) {/* This is only for the viewers with currently slow internet connection speed */}
这并不意味着忽略屏幕大小。这显然与布局有关。这种媒体查询的扩展将为我们提供一个更适合媒体的工具,在这个世界上,您的设备的大小越来越与它的带宽无关。所以我想知道:有可能吗?

CSS带宽媒体查询 为WP2原创文章,链接:https://www.wp2.cn/css/css%e5%b8%a6%e5%ae%bd%e5%aa%92%e4%bd%93%e6%9f%a5%e8%af%a2/