0
我正在製作一個網站,並在其頂部有一個包含兩個元素的包裝,其中一個包含左側浮動,另一個包含左側包含邊距的彌補漂浮物體佔據的空間。這在除IE以外的所有瀏覽器中都能很好地工作。就好像它將浮動物體識別爲「真實」物體,並強迫另一個物體移動到其下方。IE不識別「float:left」
如果你有IE,你可以看到: http://www.panache.com/books/ArtOfCelebration/ChicagoAndGreaterMidwest/
這裏的CSS,請幫忙!謝謝!從ID標識
#wrapper {
width: 936px;
margin-right: auto;
margin-left: auto;
padding-top: 22px;
padding-right: 22px;
padding-left: 22px;
}
#leftobject {
height: 275px;
width: 275px;
float: left;
margin-top: 101px;
border-top-width: thin;
border-top-style: solid;
border-top-color: #000;
padding-top: 11px;
margin-left: 7px;
}
#rightobject {
width: 625px;
margin-left: 304px;
height: 275px;
position: relative;
}
IE的哪一個版本的工作?目前世界上至少有四種不同的版本在使用,您是否在測試? – Kyle
我不知道你,但對我來說,它看起來很好,IE8 – bboy
我認爲它的ie7 ... ie8/9/10工作正常 – Pavel