Skip to content

Instantly share code, notes, and snippets.

@zhuzhuaicoding
Created October 27, 2012 07:10
Show Gist options
  • Select an option

  • Save zhuzhuaicoding/3963283 to your computer and use it in GitHub Desktop.

Select an option

Save zhuzhuaicoding/3963283 to your computer and use it in GitHub Desktop.
fixed use css hack fro ie6
top:expression(documentElement.scrollTop + documentElement.clientHeight - this.clientHeight-85 + 'px')
http://t.163.com/
position: absolute; top: expression(((document.documentElement.scrollTop || document.body.scrollTop) + (document.documentElement.clientHeight || document.body.clientHeight) - this.offsetHeight) + "px");
http://www.seabreezecomputers.com/tips/fixed-div.htm
_top: expression(eval(document.compatMode && document.compatMode=='CSS1Compat')
? documentElement.scrollTop +(documentElement.clientHeight-this.clientHeight)
: document.body.scrollTop +(document.body.clientHeight-this.clientHeight));
http://www.css-101.org/fixed-positioning/05.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment