如何在页面底部创建停靠栏类型工具栏?

时间:2009-06-28 19:10:11

标签: html css

2 个答案:

答案 0 :(得分: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的样式。

答案 1 :(得分:2)

使用css指令进行定位

position: fixed;

more details and tinkering for the positioning

相关问题