我有帶側邊欄的頁面。這裏有張桌子。無論桌子有多大,我都希望在屏幕底部顯示一行。這行應該與表格具有相同的寬度。寬度100%與固定的位置
這裏是我嘗試過,但沒有成功:
<div style="width: 100%; position: relative;">
<table>
...
</table>
<!-- this div will be width as whole page, not as table -->
<div style="width: inherit; position: fixed; bottom: 0;">Wuah!</div>
</div>
告訴我請一些建議如何使工程:)
這是一個活生生的例子,側邊欄包括:http://other.dttrading.sk/orders.htm
你有問題嗎? – 2012-08-07 22:49:47
@amiregelz問題是側邊欄。如果將它們添加到頁面中,則最後一行將比表格更寬,並且會干擾側邊欄。 – 2012-08-07 22:55:59
你能發佈相關代碼,包括側邊欄嗎? – amiregelz 2012-08-07 22:56:53