我正在嘗試使框固定在頁面的右下邊框,並且不隨頁面向下滾動而移動。但它不適合我爲什麼不工作。這裏是我的代碼:如何製作固定div?
<html>
<head>
<style type="text/css">
.tooltip {
width: 200px;
position: fixed;
top:auto;
bottom:0px;
right:0px;
left:auto;
}
</style>
</head>
<body>
<div class="tooltip">
<div class="tooltip_top">1</div>
<div class="tooltip_con">2</div>
<div class="tooltip_bot">3</div>
</div>
</body>
</html>
工作正常。即使頂部和左側的自動值不是強制性的。有什麼問題?你使用哪個瀏覽器進行測試? – gregseth 2010-01-27 23:21:36