请帮我把下面内嵌式html代码改成外部div+css形式
1个回答
2016-04-04
展开全部
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
body>div {
width: 600px;
height: 400px;
background-color: blue;
}
body>div:first-child {
width: 450px;
height: 400px;
background-color: blue;
float: left;
}
body>div:first-child >div {
float: left;
width: 200px;
height: 160px;
margin: 1 0px;
background-color: white;
}
body>div:last-child {
width: 150px;
height: 400px;
background-color: blue;
float: right;
}
body>div:last-child >div {
float: right;
width: 100px;
height: 340px;
margin: 1 Opx;
background-color: white;
}
</style>
</head>
<body>
<div>
<div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div>
<div></div>
</div>
</div>
</body>
</ html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询