jquery实现可伸缩隐藏带播放列表简约音乐播放器代码

代码语言:html

所属分类:多媒体

代码描述:jquery实现可伸缩隐藏带播放列表简约音乐播放器代码

代码标签: 隐藏 播放列表 简约 音乐 播放器

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

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <style>
        #QPlayer {
            position: fixed;
            overflow: hidden;
            bottom: 262px;
            left: -250px;
            transition: transform .5s ease;
        }
        #QPlayer .left {
            float: left;
            margin-top: 8px;
        }
        #QPlayer .right {
            float: right;
            margin-top: -17px;
        }
        #player {
            float: left;
            width: 250px;
            height: 60px;
            margin: 0 auto;
            position: relative;
            background: rgb(255,255,255);
            box-sizing: border-box;
        }
        #player .cover {
            border: 0px solid #333;
            position: absolute;
            left: 0px;
            overflow: hidden;
            -moz-border-radius: 50%;
            -webkit-border-radius: 50%;
            -o-border-radius: 50%;
            -ms-border-radius: 50%;
            -khtml-border-radius: 50%;
            width: 60px;
            height: 60px;
            -moz-box-shadow: 0 2px 2px #111;
            -webkit-box-shadow: 0 2px 2px #111;
            -o-box-shadow: 0 2px 2px #111;
            box-shadow: 0 2px 2px rgba(17,17,17,0)
        }
        #player .cover img {
            height: 100%;
            border-radius: 99%;
            cursor: pointer;
        }
        .contr {
            text-align: center;
            margin-top: 8px;
            position: relative;
        }
        #player .ctrl {
            margin-left: 60px;
            line-height: 14px;
            font-size: 14px;
            margin-top: 0px;
            color: #636363;
            padding: 8px;
        }
        #player .ctrl .musicTag {
            cursor: ew-resize;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }
        #player .ctrl .musicTag strong,#player .ctrl .musicTag span {
            display: inline;
            font-size: 85%;
            text-overflow: ellipsis;
            width: 80%;
            white-space: nowrap;
        }
        #player .ctrl .musicTag span {
            font-size: 12px;
            margin-top: 5px;
            color: #757575;
        }
        #player .ctrl .icon {
            display: inline-block;
            opacity: 1;
            cursor: pointer;
            -moz-user-select: none;
            -khtml-user-select: none;
            -webkit-user-select: none;
            -o-user-select: none;
            user-select: none;
            background: url(//repo.bfw.wiki/bfwrepo/images/player/audio_sprite.png) no-repeat 0 9999px;
        }
        #player .ctrl .icon:hover,#player .ctrl .icon.enable {
            opacity: 1
        }
        #player .ctrl .icon:active {
            opacity: 0.3
        }
        .liebiao {
            background-image: url(//repo.bfw.wiki/bfwrepo/images/player/audio_sprite.png);
            background-position: -58px -14px !important;
            width: 13px;
            height: 10px;
            position: absolute;
            left: 229px;
            top: 40px;
        }
        #player .ctrl .control {
            margin-top: 10px;
            height: 25px
        }
        .rewind {
            background-position: -33px 0 !important;
            width: 9px;
            height: 10px;
            position: absolute;
            margin-top: 4px;
            left: 70px;
        }
        .playback {
            background-position: 0 0 !important;
            width: 14px;
            height: 18px;
        }
        .playback.playing {
            background-position: -36px -63px !important;
            width: 14px;
            height: 18px;
            position: absolute;
            left: 92px;
        }
        .fastforward {
            background-position: -58px 0 !important;
            width: 9px;
            height: 10px;
            margin-top: 4px;
            position: absolute;
            left: 118px;
        }
        #player .ctrl .progress {
            margin-top: 12px;
        }
        #player .ctrl .progress .timer {
            font-size: 12px;
            color: #5f5f5f;
            margin: 0;
            vertical-align: middle;
            line-height: 18px;
        }
        #playlist {
            float: left;
            background: rgb(255,255,255);
            width: 250px;
            margin: 0;
            padding: 0;
            position: relative;
            max-height: 0;
            overflow: hidden;
        }
        #playlist li {
   .........完整代码请登录后点击上方下载按钮下载查看

网友评论0