css - 显示 : table-cell causing firefox and opera to ignore max-width and max-height properties

标签 css firefox opera vertical-alignment css-tables

如果您愿意,请转至 http://debourg-dev.ch/syselcloud/erp-rh/你会看到在 firefox 和 opera 中图像没有使用 max-height 属性。这是因为我使用 display:table-cell 来垂直对齐它们,如果我删除 display:table-cell 它工作正常。我怎样才能将这些图像与 display: table-cell 垂直对齐,并让 firefox 和 opera 使用正确的最大高度值?

相关代码是:

.partenaire-logo-wrap {
height: 110px;
text-align: center;
vertical-align: middle;
display: table-cell;
}

.partenaire-logo-wrap img {
max-height: 90px;
}

谢谢

最佳答案

.partenaire-logo-wrap img {
max-height: 90px;
-moz-height:90px;
-o-height:90px;
}

如果您想查看这篇文章,我会从这里获取此信息

Max-height ignored in Firefox, works in Chrome and Safari

关于css - 显示 : table-cell causing firefox and opera to ignore max-width and max-height properties,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13127240/

相关文章:

html - Opera Top 位置渲染问题

CSS3 选取框在 Chrome 和 Opera 中不滑动

html - 修复有问题的过滤器 CSS 属性转换(Chrome)?

css - margin : 0 auto ;不在 IE 中工作也一切都乱七八糟。 UL也乱

css - 字体系列 : inherit; specific to mozilla firefox

javascript - 获取innerHTML包含额外的<br>标签,这正常吗?

css - 旋转滚动条按钮的图像

css - 我可以合并 :nth-child() or :nth-of-type() with an arbitrary selector? 吗

xml - Firefox 和远程 XSL 样式表

javascript - window.location.replace(href) 后返回按钮失效;