<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML5 Video Player</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #f0f2f5;
}
.container {
max-width: 800px;
margin: 50px auto;
padding: 20px;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
video {
width: 100%;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
h1 {
color: #333;
}
</style>
</head>
<body>
<div class="container">
<h1>HTML5 Video Player</h1>
<video controls>
<source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</body>
</html> }
</style>
</head>
<body>
<div class="container">
<h1>HTML5 Video Player</h1>
<video controls>
<source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</body>
</html> }
</style>
</head>
<body>
<div class="container">
<h1>HTML5 Video Player</h1>
<video controls>
<source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</body>
</html>
示例 34: HTML5 视频播放器
原创
©著作权归作者所有:来自51CTO博客作者避风塘主的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:示例 33: 响应式导航菜单
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
H5视频自动播放方案
H5视频自动播放
H5 序列帧 2d 视频自动播放 -
HTML5视频播放器
HTML5视频播放器 仅供参考
数据库 HTML5 视频播放器 -
vlc html5 播放器 html5视频播放器完整代码
最近,要给“给我一只喵喵”做一个小视频的项目,需要视频播放功能。现在已经主流的方式都是优先先考虑使用h5播放器video,其他的方式都是GG,在这里我介绍用video实现视频播放方法。jQuery是继prototype之後又一个优秀的Javascrīpt框架,写更少的代码,做更多的事情,所以我们也可以考虑使用小小的插件来实现我们的功能。在这里给大家推荐一个jQuery插件库-收集最全
vlc html5 播放器 c# 浏览器demo html5 html好玩的代码 js 手机端网站底部悬浮html广告代码 ide