选项卡

查看

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>小米选项卡</title>
		<style type="text/css">
			* {
				margin: 0px;
				padding: 0px;
			}
			
			html,
			body {
				height: 100%;
				width: 100%;
				background-color: gainsboro;
				/*display: flex;*/
			}
			
			ul {
				height: 100%;
				width: 100%;
				list-style: none;
				display: flex;
				justify-content: space-around;
				align-content: center;
				flex-wrap: wrap;
			}
			
			li {
				height: 350px;
				width: 20%;
				background-color: white;
				overflow: hidden;
				box-shadow:0px 10px 10px rgba(0,0,0,.2);
			}
			li:hover{
				transform: translateY(-8px);
				box-shadow: rgba(0,0,0,7);
			}
			li:hover .display{
				transform: translateY(-70px);
			}
			.red{
				height:30px ;
				width:80px ;
				background-color: red;
				margin: 0px auto;
				color: white;
				line-height: 30px;
				text-align: center;
				font-size: 14px;
			}
			.redphoto{
				height: 200px;
				width: 100%;
				
			}
			.redtext{
				height: 116px;
				width: 100%;
				/*background-color: red;*/
			}
			#span1{
				display: block;
				height:25px;
				width: 100%;
				line-height: 25px;
			    text-align: center;
			    font-size: 18px;
			}
			.p1{
				font-size: 12px;
				color: rgba(0,0,0,.5);
				text-align: center;
			}
			#span2{
				display: block;
				margin-top: 20px;
				text-align: center;
				color: red;
				height: 15px;
				width: 100%;
				
			}
			del{
				color: rgba(0,0,0,.5);
			}
			.display{
				height: 80px;
				width: 100%;
				color: aquamarine;
				background-color: lemonchiffon;
				
				transition: .5s linear;
			}
		</style>
	</head>

	<body>
		<ul>
			<li>
				<div class="red">
					享9.5折
				</div>
				<img class="redphoto" src="//cdn.cnbj1.fds.api.mi-img.com/mi-mall/6f2493e6c6fe8e2485c407e5d75e3651.jpg?thumb=1&w=240&h=240&f=webp&q=90"/>
			    <div class="redtext">
			    	<span id="span1">
			    		Redmi Note 8 Pro
			    	</span>
			    	<p class="p1">
			    		600万全场景四射
			    	</p>
			    	<span id="span2">
			    		8888 <del>9999</del>
			    	</span>
			    </div>
			    <div class="display">
			    	陈年旧事复合物
			    </div>
			</li>
			<li>
				<div class="">
					
				</div>
				
			</li>
			<li>
				
			</li>
			<li>
				
			</li>
		</ul>
	</body>

</html>```

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值