kao我对csdn彻底失望,俺去google搜一把

解决方案 »

  1.   

    <iframe name=test src="test.htm"></iframe>
    <input type=button value=test onclick="t()">
    <script>
    function t(){
    with(window.frames('test').document.body.style)
    overflow=overflow=='auto'?'hidden':'auto'
    }
    </script>
      

  2.   

    testrecord.contentDocument.body.style.overflow="auto";
    或者
    testrecord.document.body.style.overflow="auto";scrolling="yes" || "no"只能够在页面中写好,似乎不可以对它进行编程
    我的看法确实是如此
      

  3.   

    it works for me,:(function t(){
    with(window.frames('test').document.body)
    scroll=scroll=='yes'?'no':'yes'
    }
      

  4.   

    初始设iframe属性scrolling = yes,上述脚本可以实现,如果是no就不行了
      

  5.   

    结贴啦
    function t(){
    with(window.frames('test').document.body)
    scroll=scroll=='yes'?'no':'yes'
    }it works is perfectly!
      

  6.   

    still have a problem, the horizontal scroll bar don't show it.