<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
.box {
width: 1537px;
height: 770px;
background-color: pink;
margin: auto;
}
.left {
float: left;
width: 293px;
height: 770px;
background-color: purple;
}
.right {
float: right;
width: 1244px;
height: 770px;
background-color: skyblue;
}
li { list-style: none; }
.right li {
float: left;
width: 293px;
height: 377px;
background-color: pink;
margin-left: 18px;
margin-bottom: 18px;
}
</style>
</head>
<body>
<div class="box">
<!-- 左边盒子 -->
<div class="left">
</div>
<!--右边盒子 -->
<ul class="right">
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
</ul>
</body>
</html>
小米商城布局模板
于 2022-04-27 13:07:18 首次发布