开发者

Table-layout: fixed - IE8 delay render problem with dynamic content

开发者 https://www.devze.com 2023-01-27 15:21 出处:网络
I am using a table with style table-layout:fixed to 开发者_如何学JAVAsolve wrap problems. The table content is dynamic produced with PHP. When the page is rendered, many cells content doens\'t appear!

I am using a table with style table-layout:fixed to 开发者_如何学JAVAsolve wrap problems. The table content is dynamic produced with PHP. When the page is rendered, many cells content doens't appear!

The content appear if I pass the mouse up the cell. If I resize the window manually, all the cell content appear!

What I can do? I accept any solution! Can be javascript, CSS, PHP...

Thanks!

Simone


It sounds like you need to style the headers in the first row of the table in order to establish a width for each column.

<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>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号