<!DOCTYPE html>
<html lang="zh-CN">
<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>标准流+浮动布局设计手表模块</title>
<style>
*{
margin: 0;
padding: 0;
}
/*取消列表项的列表风格*/
li{
list-style: none;
}
#box{
width: 819px;
height: 410px;
/*水平居中*/
margin: 0 auto;
background-color: red;
}
#left{
float: left;
width: 157px;
height: 410px;
background-color: orange;
}
#right{
float: right;
width: 662px;
height: 410px;
background-color: green;
}
#right li{
float: left;
width: 157px;
height: 202px;
background-color: white;
margin-left: 8px;
margin-bottom: 8px;
}
</style>
</head>
<body>
<div id="box">
<div id="left"></div>
<ul id="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>
</div>
</body>
</html>