我有一個佈局錯誤,在IE6中顯示出來,並我試圖想出一個辦法給一些線索,這些內容在我們的內容區域,這樣就不會下降在導航菜單下方。可悲的是,雖然這可能會是比較容易解決,如果我能重新設計整個網頁,我不能這樣做......這是一個活的站點承載很多很多內容頁......它只能在斷裂處情侶的地方,在IE6,在一些不同尋常的情況......所以採取了內容所有者的重大布局變化的風險是不是真的合理。修復佈局
佈局應該是這個樣子:
+-------+ +-------------------+
| Menu | | Content chunk 1 |
| | +-------------------+
| | +-------------------+
+-------+ | Content chunk 2 |
+-------------------+
Footer
但在IE 6,它看起來像:
+-------+
| Menu |
| |
| |
+-------+
+-------------------+
| Content chunk 1 |
+-------------------+
+-------------------+
| Content chunk 2 |
+-------------------+
Footer
我一直在尋找在試圖解決這一問題,並打算通過一些文獻所建議here,但我希望一個css大師也許可以很容易地看到一些光,我不是。
的代碼看起來是這樣的:
<!DOCTYPE html PUBLIC "-//W3C//Dtd Xhtml 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/Dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<body>
<div style="margin: 11px auto; width: 775px">
<!-- Menu -->
<div style="width:160px; float:left; clear:left; border:#999 1px dashed;">
Menu Item 1<br />
Menu Item 2<br />
</div>
<!-- Main content area -->
<div style="position: relative; width: 565px; float: left; margin-right: -222px">
<!-- I'm able to start modifying here. -->
<!-- Content chunk 1 -->
<table border="1">
<tr>
<td>This is data chunk 1 withALongChunkThatDoesn'tDivideWell</td>
<td>This is data chunk 2 withALongChunkThatDoesn'tDivideWell</td>
<td>This is data chunk 3 withALongChunkThatDoesn'tDivideWell</td>
<td>This is data chunk 4 withALongChunkThatDoesn'tDivideWell</td>
<td>This is data chunk 5 withALongChunkThatDoesn'tDivideWell</td>
</tr>
</table>
<!-- I'd like to be able to stop modifying here. -->
<!-- Content chunk 2 -->
<table border="1">
<tr>
<td>This is data chunk 1</td>
<td>This is data chunk 2</td>
<td>This is data chunk 3</td>
<td>This is data chunk 4</td>
<td>This is data chunk 5</td>
</tr>
</table>
<!-- I have to stop modifying here. -->
<!-- Footer -->
<div style="float: clear; text-align: center;">
Here's a footer of some kind. I don't want to be overlapped.
</div>
</div>
</body>
</html>
順便說一句,我知道周圍內容區域的區域的CSS樣式聲明是不理想的。我沒有對它們編碼,我只需要處理它們。
我還沒有多少運氣......但我也知道css是而不是我的專業知識所在。
對此提出建議?還是無望?
編輯:我對這個問題做了一些修改,試圖提高清晰度...希望擺脫downvote或兩個。非常感謝那些你已經作出了迴應......我要開始通過這些對策現在要對其進行評估。
有人倒投了問題。但是它的一個合理的問題是,實際上錯誤的描述是非常薄弱的,嘗試添加更多細節,可能是一個屏幕截圖的鏈接。 – AnthonyWJones 2009-02-13 17:10:12
好的......謝謝你的擡頭。我會看看我是否無法澄清問題的本質。 – Beska 2009-02-13 18:27:25