bootstrap实现一个可调节音量和柱状频谱视觉效果的建议音乐声音播放器代码

代码语言:html

所属分类:多媒体

代码描述:bootstrap实现一个可调节音量和柱状频谱视觉效果的建议音乐声音播放器代码

代码标签: 调节 音量 柱状 频谱 视觉 效果 建议 音乐 声音 播放器

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

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

<head>

    <meta charset="UTF-8">

    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.3.3.4.css">

    <style>
        html,
        body {
            height: 100%;
        }
        .conatiner {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }
        #spectrum {
            position: absolute;
            background-color: #222;
            top: 0;
            bottom: 0;
            right: 0;
            left: 0;
        }
        #spectrum * {
            position: absolute;
            bottom: 0;
            width: 20px;
            background-color: #90ee90;
        }
        .wrap {
            width: 200px;
            margin: auto;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        .volume-control-panel {
            display: block;
            width: 200px;
            margin: 0 auto;
            margin-bottom: 10px;
            zoom: 1;
        }
        .volume-control-panel:before,
        .volume-control-panel:after {
            content: "";
            display: table;
        }
        .volume-control-panel:after {
            clear: both;
        }
        .volume-btn {
            display: block;
            width: 20%;
            top: 0;
            height: 30px;
            color: #08f;
            background-color: #fff;
            border: 1px solid #08f;
            outline: none;
        }
        .volume-btn-minus {
            float: left;
            border-right: none;
        }
        .volume-btn-plus {
            float: right;
            border-left: none;
        }
        .volume-bar {
            width: 60%;
            height: 30px;
            border: 1px solid #08f;
            margin: 0 auto;
            position: relative;
        }
        .volume-value {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            background-color: #08f;
        }
        .btn-xlg {
            display: block;
            width: 200px;
            height: 100px;
            font-size: 32px;
        }
    </style>




</head>

<body>
    <div class="container">
        <div id="spectrum"></div>
        <div class="wrap">
            <div class="volume-control-panel">
                <button class="volume-btn volume-btn-minus glyphicon glyphicon-minus" id="vol-dec"></button>
                <button class="volume-btn volume-btn-plus glyphicon glyphicon-plus" id="vol-inc"></button>
                <div class="volume-bar">
                    <div class="volume-value" id="vol-value"></div>
                </div>
            </.........完整代码请登录后点击上方下载按钮下载查看

网友评论0