js+css实现自适应全屏音乐播放器代码

代码语言:html

所属分类:多媒体

代码描述:js+css实现自适应全屏音乐播放器代码

代码标签: js css 自适应 全屏 音乐 播放器 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" id="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <style>
        html{width: 100%; height: 100%;}
        *{box-sizing: border-box;}
        body{padding: 0; margin: 0;background-image: radial-gradient(#4e5051, #4e5051, #2e3235); width: 100%; height: 100%;background-repeat: no-repeat;}
        .audio_main{ height: 100vh;}
        .audio_title{text-align: center;padding: 10px 0;}
        .audio_title .audio_bt{font-size: 16px;color: #fff;font-weight: bold; margin-bottom: 5px;}
        .audio_title .audio_tag{color: #a3a3a3;} 
        .audio_main_center{display: flex;flex-direction: column; height:calc(100% - 67px); justify-content: space-around;}
        .audio_path .audio_bg{background: #414344; padding: 20px; border-radius: 50%;width: 260px; height: 260px; overflow: hidden; margin: 0 auto;}
        .audio_path .audio_bg img{border-radius: 50%; width: 100%; height: 100%;}
        .audio_path .audio_bg.active img{animation: 10s animationName infinite linear;}
        .audio_info{margin-bottom: 20px;}
        .audio_info .audio_info_title{color: #fff;font-size: 16px;font-weight: bold; margin-bottom: 5px;}
        .audio_info .audio_info_tag{display: flex;color: #a3a3a3;}
        .audio_info .audio_info_tag span{display: flex; background: #bfe8ff;color: #587ccc;font-size: 11px; align-items: center; justify-content: center; border-radius: 10px; padding: 0px 8px; margin-right: 5px;}
 .........完整代码请登录后点击上方下载按钮下载查看

网友评论0