1个回答
展开全部
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type='text/css'>
body{
margin:0;
padding:0;
}
.main{width:800px;margin:0 auto;text-align:center;font-weight:bold;}
.left{border:1px solid red;width:480px;height:200px;line-height:200px;float:left;background:#fff;}
.right{width:300px;height:200px;float:right;background:#fff;}
.div1,.div2{border:1px solid red;height:88px;line-height:88px;}
.div2{margin-top:20px;}
</style>
</head>
<body>
<div class='main'>
<div class='left'>1</div>
<div class='right'>
<div class='div1'>2</div>
<div class='div2'>3</div>
</div>
</div>
</body>
</html>
<!-- 试试看看是不是想要的-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type='text/css'>
body{
margin:0;
padding:0;
}
.main{width:800px;margin:0 auto;text-align:center;font-weight:bold;}
.left{border:1px solid red;width:480px;height:200px;line-height:200px;float:left;background:#fff;}
.right{width:300px;height:200px;float:right;background:#fff;}
.div1,.div2{border:1px solid red;height:88px;line-height:88px;}
.div2{margin-top:20px;}
</style>
</head>
<body>
<div class='main'>
<div class='left'>1</div>
<div class='right'>
<div class='div1'>2</div>
<div class='div2'>3</div>
</div>
</div>
</body>
</html>
<!-- 试试看看是不是想要的-->
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询