如何让htmleditor'的滚动条自动定位到面板内容的最下端

解决方案 »

  1.   

    在editor内容加载完后,设置document.body.scrollTop值。
    比如说document.body.scrollTop=document.body.scrollHeight
      

  2.   

    document.getElementById('showhtmlContent').scrollTop = document.getElementById('showhtmlContent').scrollHeight;
    我是这样写的。showhtmleditor是那个面板的id,不起作用
      

  3.   

    调调scrollTop
    试试了再说呗
      

  4.   

    this.style.posHeight=this.scrollHeight;这样试试看。应该可以
      

  5.   

    报this.style为空或不是对象 。我先调别的错误,下午就要交了,急死了