能不能不用这样的方法?
我的表格格式是这样的
<table width="740" border="1" bordercolor="#003366" align="center" cellpadding="0" cellspacing="0" class="line_top">
<tr bgcolor="333399"> 
    <td width="20%" align="center" nowrap><?php echo $backnews[2];?></td>
    <td width="18%">目前分值:<?php echo $person_info[0];?></td>
    <td width="20%">诚信度: 
      <?php include_once("maketrust.php"); maketrust($person_info[1]);?>
    </td>
    <td align="right">发表时间:<?php echo $backnews[3];?></td>
  </tr>
  <tr bgcolor="0066cc"> 
    <td width="20%" colspan="1" align="center"><?php echo "<img src=$path>";?></td>
    <td width="80%" colspan="3" class="padding" valign=top><?php echo $backnews[1];?>//问题就在这里</td>
  </tr>
</table>

解决方案 »

  1.   

    <table width="740" border="1" bordercolor="#003366" align="center" cellpadding="0" cellspacing="0" class="line_top">
    有了这一句就够了
      

  2.   

    使用css的word-break:break-all;即可解决,给分
      

  3.   


    在显示的表格<table style=" table-layout:fixed;word-break:break-all">
    这样绝对没有问题
      

  4.   

    自动换行:<table style="TABLE-LAYOUT: fixed" width="100" border="0" cellspacing="0" cellpadding="7" bgcolor="#f7f7f7">
    <tr> 
    <td style="LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word">
    qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    </td>
    </tr>
    </table>