倒~~ 还真没人理啊?... 嫌分少? 这个好说, 问题解决了可以加送....先帮忙解决问题吧 ?!!另外,顺便问下, 在一个有滚动条的层里面,是否能实现以上所需的效果
========================================================
<center>
<div id=aa style="height:90;width:300;overflow-y:scroll;background:#99CCFF">
<div id=bb style="height:10;width:300;background:#FFCCFF" align=center>浮动</div>
<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A
</div>
</center>

解决方案 »

  1.   

    <center>
    <div id=aa style="height:90;width:300;overflow-y:scroll;background:#99CCFF" onscroll=bb.style.top=scrollTop>
    <div id=bb style="position:relative;height:10;width:300;background:#FFCCFF" align=center>浮动</div>
    <P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A<P>A
    </div>
    </center>
      

  2.   

    先多谢秋水 MM ?...但这个好像用在 Iframe 里不行啊??
    <iframe src="ttable.htm" style="width:600px;height:300px;BORDER:black 1px solid; background-color:#eeeecc;" onscroll='alert(this.scrollTop)'>
    </iframe>