此播放器只有音量,暂停/播放,上传播放本地文件几个功能,
如果出了问题可以留言给我或直接到我的个人中心下载
<!DOCTYPE html>
<html lang='zh'>
<head>
<meta charset='UTF-8'>
<title>mm</title>
<style>
*{
margin:0;
padding:0;
list-style:none;
border:none;
}
.icon {
width: 1em;
height: 1em;
vertical-align: -0.15em;
fill: currentColor;
color:#fff;
overflow: hidden;
font-size:1.5em;
}
#wrap{
position:relative;
overflow:hidden;
width:100%;
background-color:rgb(0, 0, 0);
}
/* 标题 */
h3{
position:absolute;
top:-40px;
left:0;
width:100%;
height:30px;
text-align:center;
line-height:30px;
font-family:"楷体";
color:#fff;
background:rgba(0,0,0,.3);
transition:0.5s;
}
#wrap:hover h3{
top:0;
}
#video{
width: 100%;
}
#video video{
height:100%;
display:block;
margin:0 auto;
}
/* 控制台 */
.controls-wrap{
position:absolute;
bottom:-40px;
left:0;
width:100%;
height:40px;
background-color:rgba(0, 0, 0, .3);
transition:0.5s;
}
#wrap:hover .controls-wrap{
bottom:0px;
}
#controls{
display:flex;
justify-content:space-around;
align-items: center;
}
/* 播放按钮 */
#controls .play{
width:40px;
height:40px;
background:rgba(0, 0, 0, 0);
}
/* 音量 */
#controls .volume{
position:relative;
width:40px;
height:40px;
}
/* 音量按钮 */
#controls .volume .volume-btn{
display:block;
width:40px;
height:40px;
background-color:rgb(0, 0, 0, 0);
}
/* 音量条 */
#controls .volume .volume-item{
display:none;
position:absolute;
top:-