当前位置: 代码迷 >> ASP.NET >> 表格A中嵌套表格B,当B大于A的时候,如何能让A出现滚动条
  详细解决方案

表格A中嵌套表格B,当B大于A的时候,如何能让A出现滚动条

热度:1724   发布时间:2013-02-26 00:00:00.0
表格A中嵌套表格B,当B大于A的时候,怎么能让A出现滚动条?
A的大小固定,B不固定,当B大于A的时候,怎么能让A横向竖向都出现滚动条?
谢谢!

<table   id= "Table1 "   height= "420 "   cellSpacing= "1 "   cellPadding= "1 "   width= "790 "   align= "center "   border= "0 ">
<tr>
<td>

<table> </table>

</td>
</tr>
</table>

------解决方案--------------------------------------------------------
<table id= "Table1 " height= "420 " cellSpacing= "1 " cellPadding= "1 " width= "790 " align= "center " border= "0 ">
<tr>
<td>
<div style= "width:790px;overflow:auto ">
------解决方案--------------------------------------------------------
<table id= "Table1 " height= "420 " cellSpacing= "1 " cellPadding= "1 " width= "790 " align= "center " border= "0 ">
<tr>
<td>
<div style= "width:790px;overflow:auto ">
<table> ... </table>
</div>
</td>
</tr>
</table>


-----我只是帮孟子圣人把html代码写完,不是来抢分的!莫见怪
------解决方案--------------------------------------------------------
<div style= "width:790px;overflow:auto ">
------解决方案--------------------------------------------------------
抢不过阿...
  相关解决方案