返回列表 发新帖
查看: 485|回复: 0

[HTML+CSS+JS特效] HTML+CSS 固定漂浮在页面底部的层

[复制链接]

6671

热度

1万

元宝

262

贡献

管理员

DZ专员

发表于 2014-12-15 15:57:40 | 显示全部楼层 |阅读模式
制作一个漂浮在底部的 随着页面滚动而滚动的层!
  1. <html>
  2. <head>
  3.     <title></title>
  4.     <style type="text/css">
  5.         body { background-image:url(text.txt); /* for IE6 */background-attachment:fixed; height:1000px; }
  6. #wmffbottomNav { background-color:#096; z-index:999; position:fixed; bottom:0; left:0; width:100%; _position:absolute; /* for IE6 */
  7. _top: expression(documentElement.scrollTop + documentElement.clientHeight-this.offsetHeight); /* for IE6 */ overflow:visible; }
  8.     </style>
  9. </head>
  10. <body>
  11. <div id="wmffbottomNav">固定漂浮 在页面的底部<a href="https://www.cgzz8.cn/">哈哈,底部的层啊~</a></div>
  12. </body>
  13. </html>
复制代码

返回列表 发新帖
 懒得打字嘛,点击右侧快捷回复【最新发布】   【赞助草根吧享更多权益】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

收藏帖子 返回列表 搜索

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

小黑屋|手机版|草根吧