.copyright2_line {
padding: 5px 5px 5px 5px;
width:100%;
position:fixed; _position:absolute;_bottom:expression(eval(document.body.scrollTop));z-index:1024;right:0;bottom:0;
}
解决方案 »
- 初学javascript,大家帮我看看这个dom小例子
- 动态设定变量名
- 如何实现动态的目录树,根据数据库的分类?请各位兄弟帮帮忙!
- javascript脚本中生成新标记并添加到网页中
- 怎么样用鼠标点击图片,鼠标在图片上选择一个框能否知道这个框的四个点的做标?
- 请教高手!怎么读取网页里面的iframe 和javascript输出代码?
- iframe和frame有什么区别吗?
- 请问在javascript中怎样实现类似vb中的doEvents功能?
- ueditor怎么在config.json文件里面获取项目的根路径
- 一个超级链接的模拟点击方式,模拟考勤打卡用
- 自己写了一个DIV拖动类,在FF下还有小小问题,待高手一起来完成
- firefox 和 窗体右上角的叉
不过这个效果,见过...
代码如下.
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>浮动</title>
<style type="text/css">
#postBar {
position:fixed;
left:0px;
bottom:0;
_position:absolute;
_top:expression(document.documentElement.clientHeight + document.documentElement.scrollTop - this.offsetHeight);
}
</style>
</head>
<body>postBar
<div style="height:1000px;"></div>
<div id="postBar"><img src="http://static.kijiji.cn/images/post.gif" alt="广告" /></div>
</body>
</html>
恩 你这个是解决了我的问题
但是这样 我其余的页面本来是正常的那些 确又出现了滚动条
是不是设置位置的时候多设置了?
少设置点呢?
比如说bottom值可以设置大一些..
left值也是.并且用
document.body
或者
document.documentElement
根据你是否用DTD来决定的.
现在我用你这个在jsp页面 但是连页脚都不显示了 dtd在jsp里怎么写?
.copyright2_line {
padding: 5px 5px 5px 5px;
width:100%;
float:left;
}
我没太明白你的意思,是出现滚动的时侯就变形了吗?
要是变形,你用FLOAT试下