html插音乐怎么设置样式,【HTML

// 自定义语音样式

.audio-box {

margin: 0 auto;

position: fixed;

bottom: 0;

left: 0;

right: 0;

background-color: #ffffff;

border-top: 1px solid #dddddd;

}

.a-progress {

width: 100%;

margin: 20px auto;

position: relative;

padding: 0 65px;

color: #3fcccc;

}

.a-progress > span {

width: 50px;

position: absolute;

top: -1px;

}

.a-progress .played-time {

left: 15px;

text-align: left;

}

.a-progress .audio-time {

right: 15px;

text-align: right;

}

.a-progress .pgs-total {

width: 100%;

height: 16px;

background-color: transparent;

border-radius: 10px;

position: relative;

}

.a-progress .pgs-total:after {

content: '';

position: absolute;

left: 0;

right: 0;

top: 7px;

bottom: 7px;

background-color: #bbbbbb;

border-radius: 10px;

z-index: -1;

}

.a-progress .pgs-total .pgs-play {

height: 100%;

position: relative;

border-radius: 10px;

}

.a-progress .pgs-total .pgs-play:before {

content: '';

position: absolute;

top: 7px;

bottom: 7px;

left: 0;

right: 0;

background-color: #3fcccc;

border-radius: 10px;

z-index: 1;

}

.a-progress .pgs-total .pgs-play:after {

content: '';

position: absolute;

right: -8px;

width: 16px;

height: 16px;

top: 50%;

margin-top: -8px;

background-color: #3fcccc;

border-radius: 50%;

z-index: 1;

}

.a-controls {

width: 100%;

padding: 0;

position: relative;

text-align: center;

margin-bottom: 28px;

}

.a-controls .play-pause {

border: 0;

outline: 0;

padding: 0;

width: 65px;

height: 65px;

margin: 0 28px;

}

.a-controls .play-pause .icon-btn {

display: inline-block;

width: 100%;

height: 100%;

}

.a-controls .play-pause .icon-play {

background: url("../images/record-play.png");

background-size: 100% 100%;

}

.a-controls .play-pause .icon-pause {

background: url("../images/record-stop.png");

background-size: 100% 100%;

}

.a-controls .skip-ward {

width: 30px;

height: 30px;

position: absolute;

top: 50%;

margin-top: -15px;

}

.a-controls .s-left {

left: 15px;

background: url("../images/s-left.png");

background-size: 100% 100%;

}

.a-controls .s-right {

right: 15px;

background: url("../images/s-right.png");

background-size: 100% 100%;

}

.a-controls .turn-ward {

width: 40px;

height: 40px;

position: absolute;

top: 50%;

margin-top: -20px;

}

.a-controls .t-left {

left: 25%;

margin-left: -20px;

background: url("../images/t-left.png");

background-size: 100% 100%;

}

.a-controls .t-right {

right: 25%;

margin-right: -20px;

background: url("../images/t-right.png");

background-size: 100% 100%;

}

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值