PHPIN.NET

 找回密码
 立即注册
查看: 4650|回复: 0

[其他] 兼容IE6的底部悬浮CSS

[复制链接]

34

主题

2

回帖

731

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
731
发表于 2014-4-2 18:50:00 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
  1. #footpanel {
  2.         position: fixed;
  3.         bottom: 0; left: 50%;
  4.         z-index: 9999; /*--Keeps the panel on top of all other elements--*/
  5.         background: #e3e2e2;
  6.         width: 978px; height:48px;
  7.         margin-left:-489px;
  8. }

  9. *html #footpanel { /*--IE6 Hack - Fixed Positioning to the Bottom--*/
  10.         margin-top: -1px; /*--prevents IE6 from having an infinity scroll bar - due to 1px border on #footpanel--*/
  11.         position: absolute;
  12.         top:expression(eval(document.compatMode &&document.compatMode=='CSS1Compat') ?documentElement.scrollTop+(documentElement.clientHeight-this.clientHeight) : document.body.scrollTop +(document.body.clientHeight-this.clientHeight));
  13. }
复制代码


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|PHPIN.NET ( 冀ICP备12000898号-14 )|网站地图

GMT+8, 2024-4-26 06:05

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表