front-end-interview-handbook/packages/quiz/questions/can-you-give-an-example-of-.../zh-CN.mdx

21 lines
453 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 你能举例说明除 "screen "以外的媒体查询属性吗?
---
有四种类型的媒体查询属性(包括`screen`)
- `all`:适用于所有媒体类型设备
- `print`: 适用于打印机
- `speech`:用于屏幕阅读器,大声 "读 "出页面。
- `screen`:用于电脑屏幕、平板电脑、智能手机等。
下面是 `print` 媒体类型的用法示例:
```css
@media print {
body {
color: black;
}
}
```