2013-03-05 113 views
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; 
} 
+0

爲什麼星星hieght。 ** height:auto; ** – defau1t 2013-03-05 09:31:01

+0

試試這個.Container { width:960px; margin:0 auto; 背景:白色; 身高:自動; 溢出:隱藏; } – defau1t 2013-03-05 09:38:01

回答

0

可能是因爲你使用float:權利;向左飄浮;

顯示你的html也..