强制锁死TABLE宽度.

来源:互联网 发布:明基显示器怎么样知乎 编辑:程序博客网 时间:2024/04/30 08:18

word-wrap:break-word;word-break:break-all;width:;
一定要设置width 

举例:

      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="left" class="p9c" style="word-wrap:break-word;word-break:break-all;width:450;">
            {-$tl->getProductProperty('products_description')|replace:" ":"&nbsp;"|nl2br}
     {-if $tl->getProductProperty('book_catalog') neq ''}
     <p><span class="p105"><strong>目录:</strong></span><p/>
     {-$tl->getProductProperty('book_catalog')|replace:" ":"&nbsp;"|nl2br}
     {-/if}
    </td>
        </tr>
      </table>

原创粉丝点击