.bottomTable{
 background-color: rgb(249,249,249);
    z-index:99999999; position:fixed; bottom:0; left:0; width:100%; _position:absolute; /* for IE6 */
    /* _top: expression(document.body.scrollTop+document.body.clientHeight-this.offsetHeight);    */
    _top: expression(document.body.scrollTop+document.body.clientHeight-this.offsetHeight-6); /* for IE6 */
     overflow:visible;
 }

1、z-index:设置层处于最顶层。

2、position:fixed;设置定位。

3、_top: expression(document.body.scrollTop+document.body.clientHeight-this.offsetHeight-6);通过css绑定js控制层距顶端的高度,

此处是控制层处于底部,具体数值根据需求作相应的调整。

4、document.body.scrollTop:body,body标签滚动条滚动的距离,可更换为你其它标签对象(存在滚动条)。

5、document.body.clientHeight,body标签的高度,可更换为你其它标签对象。

6、-6,距具体情况作相应改动。

相关文章:

  • 2022-12-23
  • 2022-02-12
  • 2021-10-05
  • 2021-08-27
  • 2021-05-25
  • 2021-09-26
  • 2022-12-23
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2022-02-01
相关资源
相似解决方案