关于html音频以及视频标签video audio标签的实例
来源:互联网 发布:java 空格 显示问号 编辑:程序博客网 时间:2024/06/09 15:53
html的video标签功能很强大,
增加了许多属性,比如autoplay controls loop poster等
还可以用js直接调用paly() pause()等方法
这里只联系一下audio的使用:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>小哲是笨蛋</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
<style type="text/css">
body,audio{
padding: 0;
margin: 0;
}
body{
background: url(images/bg.png) repeat;
cursor: pointer;
}
#liuzhe{
display: block;
width: 500px;
height: 400px;
position: absolute;
right: 66px;
bottom: 30%;
background: url(images/xiaozhe.png);
border: 1px solid;
border-top-color: #f47a7c;
border-left-color:#10f3c0;
border-right-color: #3010f3;
/* border-top-right-radius: 10px;
border-top-left-radius: 10px;*/
border-radius:10px;
}
#liuzhe:hover{
background: url(images/qq.jpg);
opacity: 0.77;
}
</style>
</head>
<body>
<audio id="liuzhe" src="images/liuzhe.mp3" controls="controls">
小哲如果看到此段文字说明你的浏览器不支持html5,请用chrome!!
</audio>
</body>
</html>
增加了许多属性,比如autoplay controls loop poster等
还可以用js直接调用paly() pause()等方法
这里只联系一下audio的使用:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>小哲是笨蛋</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
<style type="text/css">
body,audio{
padding: 0;
margin: 0;
}
body{
background: url(images/bg.png) repeat;
cursor: pointer;
}
#liuzhe{
display: block;
width: 500px;
height: 400px;
position: absolute;
right: 66px;
bottom: 30%;
background: url(images/xiaozhe.png);
border: 1px solid;
border-top-color: #f47a7c;
border-left-color:#10f3c0;
border-right-color: #3010f3;
/* border-top-right-radius: 10px;
border-top-left-radius: 10px;*/
border-radius:10px;
}
#liuzhe:hover{
background: url(images/qq.jpg);
opacity: 0.77;
}
</style>
</head>
<body>
<audio id="liuzhe" src="images/liuzhe.mp3" controls="controls">
小哲如果看到此段文字说明你的浏览器不支持html5,请用chrome!!
</audio>
</body>
</html>
0 0
- 关于html音频以及视频标签video audio标签的实例
- HTML5-音频audio和视频video标签
- H5学习之15 video audio 标签,以及视频 音频能够最大可能正常的方式
- 音频与视频标签—audio和video
- HTML 5 <video> <audio> 标签
- 低版本IE6/7/8浏览器中使用HTML5的audio和video标签播放视频音频
- 视频<video>音频<audio>
- HTML中<audio>标签(音频)
- HTML5-video、audio标签
- HTML标签之音频、视频标签
- 直接在低版本IE6/7/8浏览器中使用HTML5的audio和video标签播放视频音频的办法
- 直接在低版本IE6/7/8浏览器中使用HTML5的audio和video标签播放视频音频的办法
- HTML5之音频Audio标签的应用
- HTML5基础教程:audio音频标签的详解
- 17-audio音频标签的使用
- (24)HTML标签详解之<audio><video><source>
- 关于使用Html <audio>标签播放视频文件的问题
- 02-audio和video标签
- 6.1 Java8增强的包装类
- Android 5.x OTA Update官方文档(十、版本签名)
- 【Android开发】高级组件-选项卡
- 关于PIC单片机18系列超低功耗软件编程的关键点
- HTML5-桌面式web应用-地理定位, webworker, 会话历史
- 关于html音频以及视频标签video audio标签的实例
- 第五周 阅读程序 4 const 的用法
- ASP.NET js控制TextBox只能输入数字和小数点
- 怎样写好求职简历?
- 第四周项目4:指向学生类的指针
- 记一次tcmalloc分配内存引起的coredump
- Validate Binary Search Tree
- Spring MVC framework[1] Configuration
- 给百度自行车提的意见