Display:Block not working in Chrome or Safari

后端 未结 3 1001
面向向阳花
面向向阳花 2020-12-10 11:33

I have a simple need to display the cells of a table row vertically. This works just fine in FF, but not in Chrome or Safari on the Ipad.

The example below renders a

3条回答
  •  有刺的猬
    2020-12-10 11:56

    EDIT 2:

    I think I have worked out your problem. Webkit overrides display: block; and computes it to be display: table-cell; in a td when there is no declared for your html.

    To fix this I recommend you set before at the top of your html.

    The reason the jsfiddle will work is because the site has a already declared.

    Try this and let me know if it fixes your problem. If not I'll try find another answer.

提交回复
热议问题