当前位置:编程学习 > html/css >>

推荐强制表格内自动换行

答案:

例如以前的表格:

<table border="0" cellpadding="0" cellspacing="0" width="770"  height="100">
<tr><td></td></tr></table>    

表格做如下修改:

<table border="0" cellpadding="0" cellspacing="0"  width="770"  height="100" style="TABLE-LAYOUT: fixed">
<tr><td style="word-break:break-all"></td></tr></table>    

增加个属性而已

上一个:放大缩小字体
下一个:如何画出细边框表格table

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,