代码:
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
.box {
width: 1000px;
height: 500px;
background-color: green;
margin: 0 auto;
}
.left {
width: 300px;
height: 100%;
background-color: pink;
float: left;
}
.right {
width: 700px;
height: 100%;
background-color:#1169EE;
float: left;
}
</style>
</head>
<body>
<div class="box">
<div class="left"></div>
<div class="right"></div>
</div>
</body>
</html>