陪你做好前端设计!
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta charset="utf-8"> <title>素材8网教程(study.sucai8.cn)</title> <style> video { max-width: 100%; height: auto; } </style> </head> <body> <video width="400" controls> <source src="mov_bbb.mp4" type="video/mp4"> <source src="mov_bbb.ogg" type="video/ogg"> Your browser does not support HTML5 video. </video> <p>调整浏览器窗口大小,在宽度小于 400px 时,查看视频播放器的变化。</p> </body> </html>
运行结果