div里填满3个DIV,我可以完成了,
但是我之前写了一个div下的3个div,都不能设置宽了,看半天不知道哪里错了![](https://gsp0.baidu.com/5aAHeD3nKhI2p27j8IqW0jdnxx1xbK/tb/editor/images/face/i_f27.png?t=20131111)
cuo.html文件:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><title>div下的三个div</title>
<link rel="stylesheet" type="text/css" href="cuo.css"
</head>
<body>
<!---广告部分div-------------------------------------->
<div class="adall">
<div class="adzs">招生广告
</div>
<div class="adyd">运动广告
</div>
<div class="adfdc">房地产广告
</div>
</div>
</body>
</html>
cuo.css文件:
.adall{
wieth:600px;
height:200px;
margin-left: 3px;
margin-top: 3px;
border: 1px solid silver;
}
.adzs{
wieth:200px;
height:200px;
background:blue;
float:left;
}
.adyd{
wieth: 300px;
height: 200px;
background: pink;
float:left;
}
.adfdc{
wieth:100px;
height:200px;
background:silver;
float:left;
}
但是我之前写了一个div下的3个div,都不能设置宽了,看半天不知道哪里错了
![](https://gsp0.baidu.com/5aAHeD3nKhI2p27j8IqW0jdnxx1xbK/tb/editor/images/face/i_f27.png?t=20131111)
cuo.html文件:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><title>div下的三个div</title>
<link rel="stylesheet" type="text/css" href="cuo.css"
</head>
<body>
<!---广告部分div-------------------------------------->
<div class="adall">
<div class="adzs">招生广告
</div>
<div class="adyd">运动广告
</div>
<div class="adfdc">房地产广告
</div>
</div>
</body>
</html>
![](https://gsp0.baidu.com/5aAHeD3nKhI2p27j8IqW0jdnxx1xbK/tb/editor/images/face/i_f12.png?t=20131111)
.adall{
wieth:600px;
height:200px;
margin-left: 3px;
margin-top: 3px;
border: 1px solid silver;
}
.adzs{
wieth:200px;
height:200px;
background:blue;
float:left;
}
.adyd{
wieth: 300px;
height: 200px;
background: pink;
float:left;
}
.adfdc{
wieth:100px;
height:200px;
background:silver;
float:left;
}