我想我的網頁看起來像這樣:IE問題:事業部定位
+------+------+
|first |third |
| | |
+------+------+
|second|
| |
+------+
在FF和Chrome瀏覽器的最新版本剪斷下面的作品,因爲它應該。但在IE瀏覽器的輸出是這樣的:
+------+
|first |
| |
+------+------+
|second| third|
| | |
+------+------+
我剪斷
<style>
#wrapper
{
width: 680px;
}
#first
{
background: Red;
float: left;
width: 500px;
}
#second
{
background: Green;
float: left;
width: 500px;
}
#third
{
background: Red;
}
</style>
<div id="wrapper">
<!-- 1st two Divs-->
<div id="first">Div ONE</div>
<div id="second">Div TWO</div>
<!-- 3rd Div should be on the top right side next to div one -->
<div id="third">Div Three</div>
</div>
我真的很感激,如果你能給我一個解決方案不會改變HTML標記。
謝謝你的時間!
瑞士安德魯
你有沒有試過float:right for the third div? – Catalin 2010-12-15 12:58:05
是的,但它不會產生正確的輸出。 – Andrew 2010-12-15 12:59:54
您使用的是哪個版本的IE? – Lazarus 2010-12-15 13:00:16