实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>html source media 实例 - 自学教程(runoops.com)</title> </head> <body> <video width="320" height="240" controls> <source src="//demo.runoops.com/static/img/movie.mp4" type="video/mp4" media="screen and (min-width:320px)"> <source src="//demo.runoops.com/static/img/movie.ogg" type="video/ogg" media="screen and (min-width:320px)"> 您的浏览器不支持 video 标签。 </video> <p><b>注意:</b> 目前所有主流浏览器都不支持 media 属性。</p> </body> </html>
运行结果: