HTML网页设计基础——电商团购悬浮框
作者:互联网
案例:
图片资源:
参考代码:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<style>
*{
margin: 0;
padding: 0;
}
ul{
margin: 50px auto;
padding-top:5px;
color: white;
width: 180px;
height: 255px;
list-style:none;
border:5px solid #613e72;
}
li{
padding-left: 35px;
line-height: 36px;
margin-left: 10px;
background:#613e72 url("../../素材/icon.png") no-repeat 5px center;
width: 125px;
height: 36px;
margin-top:5px;
}
.one{
color:#613e72;
background:url("../../素材/clock.png") no-repeat left center;
font-size: 15px;
margin-bottom: 5px;
}
.two{
background:url("../../素材/back.png") no-repeat left center;
color:#613e72;
margin-top: 5px;
}
</style>
<body>
<ul>
<li class="one">7月30日0:00开团</li>
<li>新品团</li>
<li>尝鲜团</li>
<li>秒杀团</li>
<li>清仓团</li>
<li class="two">返回顶部</li>
</ul>
</body>
</html>
标签:613e72,..,color,团购,HTML,5px,电商,margin,left 来源: https://blog.csdn.net/shengming_tutou/article/details/122775964