ul,li小标签大用处(个人感觉)

html部分

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/电脑手机双页面.css"/>
	</head>
	<body>
		<div class="he">
			<div class="he-1">
				<h1>OPPO ACCESSORY</h1>
				<ul>
					<li>
						<ul>
							<li>
								<ul>
									<li></li>
									<li>
										<ul>
											<li></li>
											<li></li>
										</ul>
									</li>
								</ul>
							</li>
							<li>
								
							</li>
						</ul>
					</li>
					<li>
						<ul>
							<li>
								
							</li>
							<li>
								<ul>
									<li>
										
									</li>
									<li>
										<ul>
											<li></li>
											<li></li>
										</ul>
									</li>
								</ul>
							</li>
						</ul>
					</li>
				</ul>
			</div>
		</div>
	</body>
</html>

css部分

*{
	margin: 0;
	padding: 0;
	list-style: none;
}

.he{
	width: 100%;
	background-color: #666;
	height: 200vh;
}

.he-1{
	display: flex;
	flex-direction: column;
	align-items: center;
}

.he-1 > ul{
	display: flex;
	width: 900px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.he-1 > ul > li{
	width: 420px;
	box-sizing: border-box;
	margin-top: 20px;
}

.he-1 > ul > li:nth-child(1){
	
}

.he-1 > ul > li:nth-child(1) > ul{
	display: flex;
	flex-direction: column;
}

.he-1 > ul > li:nth-child(1) > ul > li > ul{
	display: flex;
	width: 420px;
	justify-content: space-between;
}

.he-1 > ul > li:nth-child(1) > ul > li > ul > li:nth-child(1){
	width: 200px;
	height: 300px;
	background-color: #fff;
}
.he-1 > ul > li:nth-child(1) > ul > li > ul > li:nth-child(2){
	width: 200px;
	height: 300px;
}
.he-1 > ul > li:nth-child(1) > ul > li > ul > li:nth-child(2) > ul{
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}
.he-1 > ul > li:nth-child(1) > ul > li > ul > li:nth-child(2) > ul > li:nth-child(1){
	width: 200px;
	height: 140px;
	background-color: #fff;
}
.he-1 > ul > li:nth-child(1) > ul > li > ul > li:nth-child(2) > ul > li:nth-child(2){
	width: 200px;
	height: 140px;
	background-color: #fff;
}

.he-1 > ul > li:nth-child(1) > ul > li:nth-child(2){
	width: 100%;
	height: 180px;
	background-color: #fff;
	margin-top: 20px;
	box-sizing: border-box;
}






.he-1 > ul > li:nth-child(2){
	
}

.he-1 > ul > li:nth-child(2) > ul{
	display: flex;
	flex-direction: column;
}

.he-1 > ul > li:nth-child(2) > ul > li{
	
}
.he-1 > ul > li:nth-child(2) > ul > li:nth-child(1){
	width: 100%;
	height: 180px;
	background-color: #fff;
	margin-bottom: 20px;
	box-sizing: border-box;
}

.he-1 > ul > li:nth-child(2) > ul > li:nth-child(2) > ul{
	display: flex;
	justify-content: space-between;
}

.he-1 > ul > li:nth-child(2) > ul > li:nth-child(2) > ul > li:nth-child(1){
	width: 200px;
	height: 300px;
	box-sizing: border-box;
	background-color: #fff;
}

.he-1 > ul > li:nth-child(2) > ul > li:nth-child(2) > ul > li:nth-child(2) > ul{
	width: 200px;
	height: 300px;
	box-sizing: border-box;
	
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.he-1 > ul > li:nth-child(2) > ul > li:nth-child(2) > ul > li:nth-child(2) > ul > li{
	width: 200px;
	height: 140px;
	background-color: #fff;
}

@media (max-width: 1000px) {
	.he-1 > ul{
		flex-direction: column;
	}
}

我知道我可能有点病,请不要说出来

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值