万恶的<table>:IE中text-overflow:elipsis无效

1.给<table>标签添加css——table-layout:fixed

  <table style="table-layout:fixed;"></table>

2.给标题的<td>或者<th>添加固定宽度

  <table style="table-layout:fixed;">

    <tr>

      <td style="width:**px;/*或者  width:20%;*/"></td>

      <td style="width:**px;/*或者  width:80%;*/"></td>

    </tr>

  </table>

  (试用百分比的话,要每个标题都给定宽度)

posted @ 2015-06-01 18:09  HuilingDu  阅读(650)  评论(0编辑  收藏  举报