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.
正如之前介绍的,一个媒体查询是一种获得客户相关信息的技术。
Of course, it goes without saying that media query thresholds should not be dictated by specific devices, but by the design itself.
当然,有一点上面并没有提到,媒体查询的断点不应该由具体的设备来决定,而应该根据设计自身来决定。
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 QueryListeners——可以运行脚本以响应媒体查询的变化(比如说根据窗口尺寸在高低清晰度的图片间进行切换)。
A media query consists of an optional media type and zero or more expressions that limit the style sheets' scope by using media features, such as width, height, and color.
一个媒介查询由一个可选的媒介类型和零个或多个通过使用媒介特征,比如宽度,高度,颜色,来限制样式表范围的表达式组成。
A media query consists of an optional media type and zero or more expressions that limit the style sheets' scope by using media features, such as width, height, and color.
一个媒介查询由一个可选的媒介类型和零个或多个通过使用媒介特征,比如宽度,高度,颜色,来限制样式表范围的表达式组成。
应用推荐