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>

  • 7
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值