日期:2014-05-17  浏览次数:20555 次

ie6 ie7 ie8 ff兼容fixed的写法?
ie6 ie7 ie8 ff兼容fixed的写法?

------解决方案--------------------
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>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>IE6 position:fixed</title>
<style type="text/css">
* { margin:0; padding:0;}
#content{ height:2000px; }
#a{ position:fixed; bottom:0; right:0; width:200px; height:60px; background:#F00;}
/*IE6 fixed bug*/
* html{overflow:hidden;}
* html body{height:100%;overflow:auto;}
* html #a{position:absolute;right:18px;}
</style>
</head>

<body>
<div id="content">
IE6 position:fixed
</div>
<div id="a">IE6 position:fixed</div>
</body>
</html>