PDA

View Full Version : Fixed position không work trên IE 7



whitepenguin
21-05-2009, 07:53
cho hỏi cái đoạn này sao nó không stay fixed khi mình scroll vậy


<html>
<head>

<style type="text/css">
.fixed
{
width:100%;height:1000px;border:1px black solid;
}


</style>
</head>
<body>

<div class="fixed">
Content123456
</div>

<div style="border:1px red solid;position: fixed; top: 80px; left: 30px; width: 220px; height: 40px;z-index:30">Holla</div>


</body>
</html>

wantlove
25-05-2009, 14:49
<!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">