ITeye博客

使用CSS固定漂浮导航栏

berrywu · 2010-05-10 11:43 · CSS技术 · 编程语言 · Markdown

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>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。