Why doesn't max-width work on s in IE7?
后端 未结 2 1991
慢半拍i
慢半拍i 2021-01-18 11:27

Why does \"max-width\" not work on tables in Internet Explorer 7? max-width is available on other elements, and seems to work fine, but when applies to a table,

2条回答
  •  旧巷少年郎
    2021-01-18 12:00

    The max-width property set for a table is ignored by WebKit browsers, both Chrome and Safari will render the table ignoring the max width as does IE7. I would recommend setting the max-width property to a wrapper element such as a div.

    See http://jsfiddle.net/P5YPR/1/

提交回复
热议问题