日期:2014-05-18  浏览次数:20378 次

表太大把页面撑破了.
有个超长的表,把页面撑破了.有啥解决办法?
怎么实现把这超大表如果超过一定列数,下面出滚动条.

------解决方案--------------------
将表放入一个Div中,设置Div自动显示水平滚动条
------解决方案--------------------
用 <iframe> 或者div+css都可以。
------解决方案--------------------
刚用2个div写过,有表更简单,随便贴个你看看
<style type= "text/css "> .ss1 { width:700px; overflow-x:scroll;} .ss2{width:1000px;height:200px}
</style>

<div class= "ss1 ">
<div class= "ss2 "> <img src= "http://img2.9158.com/2007/02/06/szc21/200702067406535.jpg " height= "200 " width= "200 "> <img src= "http://img2.9158.com/2007/02/06/szc21/200702067406535.jpg " height= "200 " width= "200 "> <img src= "http://img2.9158.com/2007/02/06/szc21/200702067406535.jpg " height= "200 " width= "200 "> <img src= "http://img2.9158.com/2007/02/06/szc21/200702067406535.jpg " height= "200 " width= "200 "> <img src= "http://img2.9158.com/2007/02/06/szc21/200702067406535.jpg " height= "200 " width= "200 "> </div>
</div>