11智能在线
新记
一个在浏览器底部固定浮动的DIV怎么实现
如题所述
举报该文章
相关建议 2017-02-22
HTML code<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
">
<html xmlns="
http://www.w3.org/1999/xhtml
">
<head>
<title>testing</title>
<style type="text/css">
.shape{width:200px; height: 140px; position:fixed!important; position:absolute; right:5px; bottom:5px!important; bottom:auto; top: expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop+(documentElement.clientHeight - this.clientHeight):document.body.scrollTop+(document.body.clientHeight - this.clientHeight));}
.shape .con{width:200px; height:100px; background: url(
http://static.l99.com/skin/default/images/versus/pk_vote_record.gif
) no-repeat;}
.shape .btn{width:200px; height:40px; background: url(
http://static.l99.com/skin/default/images/versus/pk_vote_record.gif
) no-repeat 0 -100px;}
.height{height:1300px;}
</style>
</head>
<body>
<div class="shape">
<div class="con"></div>
<div class="btn"></div>
</div>
<div class="height">
</div>
</body>
</html>
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/fsmmf4mp8f7f4ppvsfm.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
ASP程序 div 固定底部 代码如下(现在是固定在浏览器底...
JS 让div始终浮动在浏览器底部
如何固定一个div在浏览器底部
怎么让DIV或table固定在浏览器底部
css如何控制某一个div始终位于页面右侧?
CSS如何把DIV永远置于页面的底部
怎样使一个div永远定位在浏览器的底部
如何把DIV固定在浏览器中的某个位置,