案例:html/html5 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<style type="text/css">
4
h1 {color:#FF0000;}
5
p {color:#0000FF;}
6
body {background-color:#FFEFD6;}
7
</style>
8
9
<style type="text/css" media="print">
10
h1 {color:#000000;}
11
p {color:#000000;}
12
body {background-color:#FFFFFF;}
13
</style>
14
</head>
15
16
<body>
17
<h1>Header 1</h1>
18
<p>A paragraph.</p>
19
</body>
20
</html>
21