html – IE7 / 8中的Colspan没有得到尊重

前端之家收集整理的这篇文章主要介绍了html – IE7 / 8中的Colspan没有得到尊重前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
DOM看起来像这样:
<table>
  <tr>
    <td>a</td>...<td>g</td>
  </tr>
  <tr>
    <td colspan="3">
      <table>
        ...
      </table>
    </td>
  </tr>
  <tr>
    <td></td>...<td></td>
  </tr>
</table>

知道为什么这不适用于IE吗?我尝试在持有内部表的TD上设置width:auto,并且table-layout:fixed不可行,因为表格数据是动态生成的.

怎么可能出错?

目前,该表仅填充第一列,并且不会跨越.

更新:示例

http://stefankendall.com/files/example.html

解决方法

@H_301_17@ 使用colSpan,而不是colspan
原文链接:https://www.f2er.com/html/226158.html

猜你在找的HTML相关文章