css+js实现带播放列表简洁音乐播放器代码

代码语言:html

所属分类:多媒体

代码描述:css+js实现带播放列表简洁音乐播放器代码

代码标签: 播放列表 简洁 音乐 播放器

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

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title></title>

    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
    <style>
        body,div,p {
    	padding: 0;
    	margin: 0;
    	font-family: "微软雅黑";
    }
    body{background-color: #1d1d1d}
    a {
    	text-decoration: none;
    	color: #666;
    }
    
    a:hover {
    	color: #DDD;
    }
    
    ul li{
    	list-style: none;
    }
    
    
    .wrapper {
    	
    }
    
    .bz_music {
        width: 700px;
        height: 380px;
       	margin: 150px auto;
       	box-shadow: 0 0 40px rgba(0,0,0,0.8);
       	border-radius: 10px;
       	background: #222;
       	position: relative;
    }
    
    /*上半部分*/
    
    .bz_music .music_info {
    	width: 500px;
    	height: 150px;
    	background: #000;
    	border-radius: 10px 10px 0 0;
    	position: relative;
    }
    
    .music_info .left_photo {
    	width: 100px;
    	height: 100px;
    	background-color: #fff;
    	border-radius: 50%;
    	position: absolute;
    	top: 15%;
    	left: 20px;	
    	overflow: hidden;
    	transition: all 1s;
    }
    
    .music_info .left_photo img {
    	width: 100px;
    	height: 100px;
    	transform:rotate(0deg);
    }
    
    .music_info .right_btn {
    	width: 30px;
    	height: 100px;
    	color: #666;
    	position: absolute;
    	top: 30%;
    	right: 20px;
    	
    }
    
    .music_info .right_btn .random {
    	display: block;
    	margin-bottom: 10px;
    }
    
    .music_info .right_btn .list {
    	display: block;
    	margin-bottom: 10px;
    	color: #DDD;
    }
    
    .music_info .right_btn .heart {
    	display: block;
    }
    
    .music_info .center_list {
    	width: 500px;
    	height: 150px;
    	position: relative;
    }
    
    .music_info .center_list ul {
    	position: absolute;
        top: 35%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
    
    /*.music_info .center_list ul li {
    	display: none;
    }
    
    .music_info .center_list ul .list_current {
    	display: block;
    }*/
    
    .music_info .center_list .list_title {
    	font-size: 30px;
    	display: block;
    	color: rgba(255,255,255,0.4);
    	margin-bottom: 10px;
    	text-align: center;
    	white-space: nowrap;
    }
    
    .music_info .center_list .list_singer {
    	display: block;
    	color: rgba(255,255,255,0.4);
    	text-align: center;
    }
    
    .music_info .process {
    	width: 100%;
    	height: 5px;
    	background: #000;
    	display: block;
    	position: absolute;
    	bottom: 0;
    	cursor: pointer;
    }
    
    .music_info .process .process_slide {
    	width: 0;
    	height: 5px;
    	display: block;
    	background: #ed553b;
    }
    
    
    /*下半部分*/
    
    .bz_music .music.........完整代码请登录后点击上方下载按钮下载查看

网友评论0