【问题标题】:Table-layout: fixed - IE8 delay render problem with dynamic content表格布局:已修复 - 动态内容的 IE8 延迟渲染问题
【发布时间】:2010-12-01 23:27:59
【问题描述】:

我正在使用样式为 table-layout:fixed 的表格来解决换行问题。 表格内容是动态的,使用 PHP 生成。页面渲染时,很多单元格内容没有出现!

如果我将鼠标向上传递到单元格,内容就会出现。如果我手动调整窗口大小,所有单元格内容都会出现!

我能做什么?我接受任何解决方案!可以是javascript、CSS、PHP...

谢谢!

西蒙娜

【问题讨论】:

  • 我们需要一个示例数据表。确保您没有任何“空”单元格,因为 IE 倾向于折叠这些单元格,至少有一个   (不间断空格)在任何其他空白单元格中。

标签: css internet-explorer-8 rendering tablelayout


【解决方案1】:

听起来您需要对表格第一行的标题进行样式设置,以便为每列建立宽度。

<table>
  <tr>
    <th style="width:100px;">Header 1</th>
    <th style="width:100px;">Header 2</th>
  </tr>
  <tr>
    <td>Value 1</td>
    <td>Value 2</td>
  </tr>
</table>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-10
    • 1970-01-01
    • 2011-02-25
    • 1970-01-01
    • 2017-01-13
    • 1970-01-01
    相关资源
    最近更新 更多