首页 > 其他 > 详细

页首固定导航条和页底固定导航条

时间:2015-09-14 22:41:02      阅读:323      评论:0      收藏:0      [点我收藏+]

页首固定导航条

 


#topNav {

position:fixed;

top:0;

 

_ position:absolute;

_top:expression_r(eval_r(document.documentElement.scrollTop));

overflow:auto;

z-index:9999;

}

 


页尾固定导航条

 

 


body { background-image:url(about:blank);
background-attachment:fixed; }

 


#bottomNav {

background-color:#096;

overflow:visible

z-index:999; 

position:fixed; 

bottom:0; 

left:0; 

width:100%; 

_position:absolute; 
top:expression_r(eval_r(document.documentElement.scrollTop+document.documentElement.clientHeight

-this.offsetHeight

-(parseInt(this.currentStyle.marginTop,10)||0)

-(parseInt(this.currentStyle.marginBottom,10)||0))); 

}

 

页首固定导航条和页底固定导航条

原文:http://www.cnblogs.com/94YY/p/4808270.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!