请问如何让文字在td内自动换行??<td>里面没有nowrap

解决方案 »

  1.   

    <td style="LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word"><font color="#990000">csnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.netcsnd.net</font><br>
    连串英文省略
    </font></td>注意style="LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word" 你可修改为指定的大小如 200px
      

  2.   

    有 段落的地方加  <br>标记
      

  3.   

    1、把你的连串英文里的点都换成空格。
    2、width 不要用 100%,用指定大小,比如 100px。
      

  4.   

    <td style=" WORD-WRAP: break-word">
      

  5.   

    <td style="word-break:break-all">
      

  6.   

    <table id="tabledetail" style="WORD-BREAK: break-all; work-wrap: break-word" cellSpacing="0" cellPadding="5" runat="server">