HTML+JS+CSS制作一个自定义音乐播放器

预览图

music.jpg

注意使用其他类型文件需要更改粗体部分

index.html




    
    
    
    
    musicplayer


    
    

进度条: 音量:

style.css

body{
    background-color: rgb(209, 214, 166);
}
.pro {
    -webkit-appearance: none;
    max-width: 350px;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #1B2B33;
    outline: none;
    margin-top: 50px;
    margin-bottom: 30px
  }
 
  .pro::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.5);
    border:1px solid #eee;
    cursor: pointer;
  }
 
  .pro::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    cursor: pointer;
  }
.butn:active {
    background-color: #fff;
    box-shadow: 0px 3px #666;
    transform: translateY(-7px);
  }
.butn{
    width: 6.25rem;
    height: 1.5625rem;
    transform: translateY(-10px);
    border-radius: 8px;
    background-color: #FFF;
    border: none;
    transition: .25s;
    outline: none;
    cursor: pointer;
    box-shadow: 0px 5px #000;
}
.butn:hover{
    background-color: #EEE;
}

你可能感兴趣的:(HTML+JS+CSS制作一个自定义音乐播放器)