自己写的一个简单的音乐播放器代码可自定义样式

效果图:


需要的图片:


css部分:

#show_in{
	position:absolute;
	bottom:0px;
		left:0px;
		width: 100%;
	height: 60px;
		border: 1px solid red;
}
#playaudio{
	position:absolute;
	bottom:0px;
	left:0px;
	opacity: 0.9;
	width: 100%;
	height: 60px;
	background-color:#404040;
	border: 1px solid black;
	box-shadow: 0px 0px 10px black;
	
}
#aduioBox{
	width: 1280px;
	height: 50px;
	margin: 0px auto;

}
#list_s{
	position: absolute;
	width: 300px;
	height: 300px;
	border: 1px solid red;
	transform:translate(900px,-300px);
	background-color:#404040;
		border: 1px solid black;
	box-shadow: 0px 0px 10px black;
	z-index: -1;
}
#lis_m{
	
}
#lis_m>li{
	color: white;
	cursor: pointer;
}
#aduioPlay{
	transform: translate(50px,5px);
}
#playUP,#playNext,#playBtn,#vilumeBtn{
	background: url(../img/playbar.png) no-repeat;
	border: 0px;
	border-radius:50px;
	outline: none;
}
#playUP{
	width: 28px;
	height: 28px;

	background-position-x:-1px;
	background-position-y:-131px;
}
#playUP:hover{
	background-position-x:-32px;
	background-position-y:-131px;
}
#playNext{
	width: 28px;
	height: 28px;
	background-position-x:-80px;
	background-position-y:-131px;
}
#playNext:hover{
	background-position-x:-110px;
}
#playBtn{
	width:40px;
	height: 40px;
	
	background-position-x:2px;
	background-position-y:-202px;
}
#playBtn:hover{
	
	background-position-x:-39px;
	background-position-y:-202px;
}
#authorAndMusicName{
	position:absolute;
	transform: translate(210px,-40px);
}
#authorAndMusicName>a{
	text-decoration: none;
	color:white;
}
#authorAndMusicName>a:hover{
	text-decoration: underline;
}
#ProgressBar{
	width: 500px;
	position:absolute;
	transform: translate(200px,-20px);
}
#
  • 6
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值