2009-06-28 60 views

回答

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

您使用的CSS指令用于定位

position: fixed; 

more details and tinkering for the positioning

+0

不用,我想知道如何从头开始创建 – coderex 2009-06-28 19:17:57

+0

哦,这有点复杂,而且它不是可以回答的问题。这就像问“我如何制作日历小部件?” – 2009-06-28 19:19:32

相关问题