2.横向滑动条不可见 <div style="overflow-x:hidden;">

解决方案 »

  1.   

    谢谢hookee() ,那怎样始终把横向滑动条定位在右边?
      

  2.   

    1.滚到最右边
    <HEAD>
    <SCRIPT>
    var iTimer;
    function timeIt()
    {
    iTimer = setInterval("scrollIt()", 1);
    }
    function scrollIt()
    {
    oScrollMe.doScroll("right");
    }
    </SCRIPT>
    </HEAD>
    <BODY onload="timeIt()">
    <DIV ID=oScrollMe STYLE="width:100px;height:100px;overflow:scroll">
    xxxxxxxxxxxxxxxxxxxxxx
    </DIV>
    </BODY>
      

  3.   

    最右边
    <script>
    document.body.scrollLeft=document.body.offsetWidth;</script>