1、CSS样式
body { background-image:url(text.txt); /* for IE6 */ background-attachment:fixed; } #bottomNav { z-index:999; position:fixed; bottom:0; /*去掉此行则固定在页面顶部*/ left:0; width:100%; _position:absolute; /* for IE6 */ _top: expression(documentElement.scrollTop + documentElement.clientHeight-this.offsetHeight); /* for IE6 */ overflow:visible; }
2、html部分
<div id="bottomNav">我是导航栏O(∩_∩)O~</div>