position:fixed?

in 没有分类

position:fixed在ie6及以下版本下不大好用
firefox运行:


运行代码

于是用js来解决


运行代码

1 Comment

One Comment

  1. #befixiedd{
    position: absolute;
    bottom: auto;
    clear: both;
    top:e­xpression(eval(document.compatMode &&
    document.compatMode==’CSS1Compat’) ?
    documentElement.scrollTop
    +(documentElement.clientHeight-this.clientHeight) – 1
    : document.body.scrollTop
    +(document.body.clientHeight-this.clientHeight) – 1);
    }

Leave a Reply

Using Gravatars in the comments - get your own and be recognized!

XHTML: These are some of the tags you can use: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>