项目中需要俩个table列宽要保持一致的情况,尽管每个td都设置了width,试了好多种方法,都会根据列里面的内容微妙的增宽导致对不齐。最后找到这个,设上之后就OK了。
<TABLE style="table-layout:fixed;">
其它:
nowrap="nowarp" 不换行
style='word-break:break-all;word-wrap:break-word'换行
<TABLE style="table-layout:fixed;">
其它:
nowrap="nowarp" 不换行
style='word-break:break-all;word-wrap:break-word'换行