采用xmlhttp返回结果太长.前台处理方式:
document.getElementById("Test").innerHTML = arr[0];
表格:<table>
                            <tr>
                                                        <td valign="top" bgcolor="#E3DED7" class="t2">
                                                            <div id="Test" style="height:20;overflow-x:hidden;overflow-y:scroll;"></div>
                                                        </td>
                                                    </tr>
                                                </table>
请问为什么不能产生滚动条呢????

解决方案 »

  1.   

    overflow:auto也不行.你们不妨试下看..
      

  2.   

    加了height,width,overflow:auto还是不行的.
      

  3.   

    <table>
     <tr>
    <td valign="top" bgcolor="#E3DED7" class="t2">
    <div id="Test" style="height:20px; weith: 400px; 18:18 2007-3-5overflow-x:hidden;overflow-y:scroll;">
    1
    1
    1
    1
    1
    1
    111<br>
    1<br>1<br>
    1<br>
    1<br>
    1<br>
    1<br>
    1<br>
    1<br>
    1<br>
    1<br>
    </div>
    </td>
    </tr>
    </table>可以加啊,你试试。
      

  4.   

    第四行弄错了。
    <div id="Test" style="height:20px; weith: 400px;overflow-x:hidden;overflow-y:scroll;">
      

  5.   

    document.getElementById("Test").innerHTML = arr[0];记得要用这种方式呀..各位!@~~~~~~~~~~~~~~