Files
2018-10-16 21:32:40 +05:30

22 lines
418 B
Markdown
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: Create a Media Query
localeTitle: 创建媒体查询
---
## 创建媒体查询
按照说明:
添加媒体查询以便当设备的高度小于或等于800px时p标签的字体大小为10px。
媒体查询是:
```css
/* Add media query below */
@media (max-height: 800px){
p {
font-size: 10px;
}
}
```
当设备的宽度小于或等于800px时文本大小为10px。