当前位置: 代码迷 >> 综合 >> div固定页面右下角实现
  详细解决方案

div固定页面右下角实现

热度:6   发布时间:2024-01-21 14:34:12.0

<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>使用CSS将Div固定在窗口的右下角</title> 
<style> 
#INDEXT_RB_AD{ 
clear:both; width:200px; height:100px; z-index:1000; overflow:hidden; border:1px #ccc solid; 
bottom:5px; right:5px; /* 火狐、Google浏览器只需要后面这一句代码即可 */ 
position:fixed !important; /* 以下代码是针对IE6的 */ 
_position:absolute; 
_top: expression( eval( document.documentElement.scrollTop + document.documentElement.clientHeight - this.offsetHeight - (parseInt(this.currentStyle.marginTop,10)||0) - (parseInt(this.currentStyle.marginBottom,10)||0) ) - (parseInt(this.currentStyle.bottom,10)||0) ); 
} 
</style> 
</head> 
<body> 
<div style="height:2000px;">使用CSS将Div固定在窗口的右下角</div> 
<div id="INDEXT_RB_AD" style="display:;"> 
<div align="right" style=" widt
  相关解决方案