这并不是说媒体查询是一种不良实践。
而有了媒体查询,浏览器就可以基于其能力作出决定。
With a media query, the browser makes the decision based on its capabilities.
正如之前介绍的,一个媒体查询是一种获得客户相关信息的技术。
As introduced earlier, a media query is a technique to obtain information about the client.
有一个例子定义了一些影响媒体查询处理较小的屏幕。
There is an example effect defined and also some media queries for dealing with smaller screens.
要更多地了解媒体查询,请查阅相关的草案规范(参见参考资料)。
To learn more about media queries, please see the draft specification (see Resources).
你添加的媒体查询越多,你的CSS代码就会变得越来越经不起折腾。
The more media queries you add, the more fragile your CSS code becomes.
巨大的影响,不可避免地会媒体查询,稍微掩盖了其他重要的介绍,这是外部样式表。
The huge impact that media queries will inevitably have, has slightly overshadowed the other significant introduction, which is external style sheets.
当网页本身的设计足够灵活时,让它变成响应式应该只需要用到一些简短的媒体查询代码。
When a design is sufficiently flexible, making it responsive shouldn't take more than a few short media queries.
当然,有一点上面并没有提到,媒体查询的断点不应该由具体的设备来决定,而应该根据设计自身来决定。
Of course, it goes without saying that media query thresholds should not be dictated by specific devices, but by the design itself.
虽然这个可以锁定大多数较新的设备,但许多老设备不支持媒体查询,所以我们需要一种混合方法来获得最大的市场渗透(兼容)。
While this targets most newer devices, many older devices don't support media queries, so we'll need a.
目的:为了解决医院数据安全和数据共享之间的矛盾,使患者能够实时地通过多媒体查询平台获得就医体检数据和诊断报告。
Objective To solve the conflict between data security and sharing in hospital so that patients can get their clinical data through result query service system.
MediaQueryListeners——可以运行脚本以响应媒体查询的变化(比如说根据窗口尺寸在高低清晰度的图片间进行切换)。
Media query Listeners - enables running a script in response to a change in the media query (for eg switching between low and high res image sources depending on window size).
比较常见的实践是用多种不同的分辨率来测试一个网站,然后添加越来越多的媒体查询(Media Query)规则来修补网站在这些分辨率下出现的问题。
The common practice is testing a website in multiple resolutions and adding more and more media queries to fix the issues that arise.
比较常见的实践是用多种不同的分辨率来测试一个网站,然后添加越来越多的媒体查询(Media Query)规则来修补网站在这些分辨率下出现的问题。
The common practice is testing a website in multiple resolutions and adding more and more media queries to fix the issues that arise.
应用推荐