css做的对象悬停效果,静止不动,不随滚动条滚动的

css做的对象悬停效果,静止不动,不随滚动条滚动的特效
  

以下为引用的内容:
<style>
.aa{height:2000px;width:40px;background:#eee;}
.bb{width:50px;height:80px;background:red;float:right;
 position:fixed !important; top/**/:0px;
 position:absolute; z-index:100; top:expression(offsetParent.scrollTop+20);right:20px;
</style>

<div class="aa">
 
<script>
for(var i=0;i<99;i++){document.write(i+"<br>");}
</script>

 <div class="bb">我是不动的。</div>

</div>

posted @ 2009-06-04 14:40  果果乐园  阅读(471)  评论(0编辑  收藏  举报