div
当我将 a 添加到 container时,Container 不会扩展div
。我的意思是当我添加一个div
到容器时,div
溢出容器div
。谢谢你的帮助。
main.css:
body {
font-family:Arial, Helvetica, sans-serif;
font-size:small;
margin:0px;
background:repeat-x url(resimler/Bg.jpg) #57513e;
}
.Container {
width:960px;
margin:0 auto;
background:white;
**height:auto;
** overflow:hidden
}
.UstAlan {
margin:auto;
background-image:url(resimler/ConteinerUstBg.jpg);
height:21px;
}
.Slider {
margin:auto;
height:280px;
border:1px solid red;
float:left;
width:960px;
}
.TestAlan {
margin:auto;
width:960px;
background:black;
float:left
}
.BirTest {
width:940px;
margin:auto;
padding:10px;
border:1px solid blue;
margin-top:10px;
background:red;
float:left;
height:auto
}
.Sol {
height:auto;
width:450px;
background:#d7e9ba;
background:blue;
float:left;
margin-left:10px;
}
.Sag {
height:auto;
width:450px;
background:yellow;
float:right;
margin-right:10px;
}
.Baslik {
background:url(resimler/KutucukUst.jpg);
height:24px;
width:450px;
}