<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<HEAD>
<title>css jquery implements Div bottom fixation </TITLE>
<meta http-equiv=content-type content= "text/html; CHARSET=GBK ">
<style type=text/css>
*{margin:0;padding:0;font:14px "Microsoft Jas Black";}
. fixed{right:15px; Background:lightgreen; left:15px; bottom:0; line-height:30px; position:fixed; height:30px}
#iefixed {MARGIN: -1px 15px 0px;overflow:hidden; Zoom:1; HEIGHT:1PX}
</STYLE>
<!--[If Lt IE 7]>
<style type= "Text/css" >
. Fixed {
Position:absolute;
Bottom:auto;
Clear:both;
Width:expression (document.getElementById (' iefixed '). clientwidth);
Left:expression (document.getElementById (' iefixed '). offsetleft);
Top:expression (eval (document.compatmode && document.compatmode== ' Css1compat ')? Documentelement.scrolltop +
(documentelement.clientheight-this.clientheight): Document.body.scrollTop + ( document.body.clientheight-this.clientheight));}
</style>
<script type= "Text/javascript" >
function _fixbackground () {
var body = document.body;
var blank_gif;
if (body.currentStyle.backgroundAttachment! = "fixed") {
if (Body.currentStyle.backgroundImage = = "None") {
body.runtimeStyle.backgroundImage = "url (" + blank_gif + ")"; Dummy
body.runtimeStyle.backgroundAttachment = "fixed";
}
}
}
Window.onload = function () {
_fixbackground ();
}
</script>
<! [endif]-->
</HEAD>
<BODY>
Please look at the bottom of the page
<div><a href= "http://www.999jiujiu.com/" >http://www.999jiujiu.com/</A></div>
<!--[if LT IE 7]><div id= "iefixed" ></div><! [endif]-->
<div style= "width:960px;height:2000px;margin:0 Auto" ></div>
<div class=fixed> Bottom Fixed display content </DIV>
</BODY>
</HTML>
CSS jquery Implementation div Bottom fixed, not with scroll bar move