日期:2014-05-19  浏览次数:20498 次

[前辈]要使Table产生滚动条,如何实现?
采用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>


请问为什么不能产生滚动条呢????




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

------解决方案--------------------
20px