css display:使用firefox表max-width

时间:2014-05-12 14:14:45

标签: css firefox

我想使用display:table,但我只有firefox有问题。 Firefox不想采用max-width

的值
<div class="container" style = "display: table;width: 600px;max-width: 600px;">
<div class="column" style="display: table-cell; background-color:blue;"><img src="http://www.supportduweb.com/ftp/ybouane/scripts_astuces/photoshop/logo_google/img_final.png" style="max-width:100%;"></div>
<div class="column" style="display: table-cell; background-color:green;"><img src="http://www.supportduweb.com/ftp/ybouane/scripts_astuces/photoshop/logo_google/img_final.png" style="max-width:100%;"></div>
<div class="column" style="display: table-cell; background-color:red;"><img src="http://www.gizmodo.fr/wp-content/uploads/2013/09/yahoo1.png" style="max-width:100%;"></div>

如果我把表格布局:固定;在容器上,最大宽度是可以的,但所有列都具有相同的宽度。如何使用table-layout:auto;

提前帮忙。

0 个答案:

没有答案