6
A
回答
17
<div id="toolbar" style="position: fixed; bottom: 0px; left: 0px; width: 100%; color: #fff; background: #000;">
Toolbar Content
<!-- rest of your toolbar stuff here -->
</div>
這將創建一個黑色背景的div保持在屏幕的底部,無論瀏覽器調整大小或滾動。然後,您可以根據自己的喜好設置該div的風格
2
+0
不用,我想知道如何從頭開始創建 – coderex 2009-06-28 19:17:57
+0
哦,這有點複雜,而且它不是可以回答的問題。這就像問「我如何製作日曆小部件?」 – 2009-06-28 19:19:32
看看他們在用什麼 – SilentGhost 2009-06-28 19:18:43