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>
<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>