<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
<title>css jquery implements Div bottom pinning </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]-->
<body>
See bottom of page
<div>http://www.999jiujiu.com/</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>
CSS jquery implements DIV bottom fixed and does not move with scroll bar