兼容IE Firefox的table自动换行

老是把这写小问题用的时候忘掉,还是写上好了

首先table中加上样式style="table-layout:fixed;"<table width="773" style="table-layout:fixed;" border="0" cellspacing="0" cellpadding="0">

其次,在td中加上样式:style="word-break: break-all; word-wrap:break-word;" <td style="200px; word-break: break-all; word-wrap:break-word;" align="center" >

就OK了

原文地址:https://www.cnblogs.com/YuanShuai/p/2658692.html