案例:html/html5 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<video width="320" height="240" controls>
6
<source src="/img/movie.mp4" type="video/mp4" media="screen and (min-width:320px)">
7
<source src="/img/movie.ogg" type="video/ogg" media="screen and (min-width:320px)">
8
Your browser does not support the video tag.
9
</video>
10
11
<p><b>注释:</b>目前几乎没有浏览器支持 media 属性。</p>
12
13
</body>
14
</html>
15