代码编辑器:
x
1
2
<meta charset="utf-8"><link href="/static/next/css/tryit.css?v=2017082407" rel="stylesheet"/>
3
4
<style>
5
body {
6
background-color:lightgreen;
7
}
8
@media only screen and (max-width: 500px) {
9
body {
10
background-color:lightblue;
11
}
12
}
13
</style>
14
<p>重置浏览器大小,当文档的宽度小于 500 像素,背景会变为浅蓝色,否则为浅绿色。</p>
15
<footer>简单教程,简单编程<br/>Copyright © 简单教程 www.twle.cn</footer>
16