html 语音播放插件,Html5添加audio音频播放器插件教程

一、方法:

使用Material design风格音频播放器插件需要引入jQuery和jaudio.min.js。

二、HTML结构

00:00

00:00

三、CSS样式

下面是该音频播放器的主要CSS样式。你可以修改下面的样式来制作你自己需要的音频播放器样式。

.jAudio--player {

display: table;

overflow: hidden;

background: #fff;

box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);

margin: 100px auto;

width: 352px;

}

.jAudio--player:after {

content: " ";

display: block;

width: 100%;

clear: both;

}

.jAudio--player .jAudio--ui {

position: relative;

width: 100%;

}

.jAudio--player .jAudio--status-bar {

width: 100%;

z-index: 1;

position: relative;

padding: 100px 2rem 2rem 2rem;

display: table;

}

.jAudio--player .jAudio--status-bar:after {

content: " ";

display: block;

width: 100%;

clear: both;

}

.jAudio--player .jAudio--controls {

width: 100%;

display: table;

background: #fafafa;

}

.jAudio--player .jAudio--controls:after {

content: " ";

display: block;

width: 100%;

clear: both;

}

.jAudio--player .jAudio--controls ul {

display: table;

overflow: hidden;

width: 100%;

}

.jAudio--player .jAudio--controls ul:after {

content: " ";

display: block;

width: 100%;

clear: both;

}

.jAudio--player .jAudio--controls li {

position:

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值