防止div被里边的table撑大
- <style type="text/css">
- .tabWordBreak{table-layout:fixed;word-wrap:break-word;word-break:break-all;}
- </style>
- <table class="tabWordBreak" border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>
- <div id="divContent" style="width: 100%;height: 165px;overflow: auto">
- </div>
- </td></tr></table>
table里边套div,div里边再套table <table> <div> <table> </table> </div> </table>
style="table-layout:fixed;word-wrap:break-word;word-break;break-all;height: 400px;overflow: hidden;"
?被撑大的列加上
style="height: 300px;overflow: hidden;"
?
td中的div加上
style="height:300px;vertical-align:top; overflow:scroll; overflow-x:auto; overflow-y:auto;"
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。
- 上一篇:没有了
- 下一篇: 防止div因内容过多而被撑大或变形