<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
html,body{
height: 100%;
overflow:hidden;
border: 1px solid;
}
body{
margin: 30px;
overflow: auto;
}
#test{
height: 2000px;
}
#test2{
position: absolute;
left: 50px;
top: 50px;
width: 100px;
height: 100px;
background: red;
}
</style>
</head>
<body>
<div id="test">
<div id="test2">
</div>
</div>
</body>
</html>
解决IE6下fixed失效的问题
猜你喜欢
转载自blog.csdn.net/qq_38053677/article/details/107015340
今日推荐
周排行