首页 > 试题广场 >

以下哪些可以作为media queries的条件()

[不定项选择题]
以下哪些可以作为media queries的条件()
  • 设备型号
  • 设备像素比
  • 设备类型
  • 设备高度
作为media queries的条件:设备像素比、设备类型、设备高度。
使用and关键字用于合并多个媒体属性或合并媒体属性与媒体类型。

@media tv and (min-width: 700px) and (orientation: landscape) { ... }

tv设备类型,(min-width: 700px) 设备像素比,(orientation: landscape)设备高度

详见MDN:https://developer.mozilla.org/zh-CN/docs/Web/Guide/CSS/Media_queries
发表于 2019-09-01 17:16:48 回复(0)

参考:MDN: Using media queries
Media queries are useful when you want to modify your site or app depending on a device's general type (such as print vs. screen) or specific characteristics and parameters (such as screen resolution or browser viewport width).

发表于 2019-05-14 12:57:07 回复(1)
转:https://developer.mozilla.org/zh-CN/docs/Web/Guide/CSS/Media_queries
发表于 2020-07-09 16:07:56 回复(0)