0
當我將div
添加到集裝箱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;
}
爲什麼星星hieght。 ** height:auto; ** – defau1t 2013-03-05 09:31:01
試試這個.Container { width:960px; margin:0 auto; 背景:白色; 身高:自動; 溢出:隱藏; } – defau1t 2013-03-05 09:38:01