CSS:IE7 需要的帮助

标签 css internet-explorer-7

出于某种原因http://funnyfurniture.net/http://funnyfurniture.net/p/5/teak-root-garden-chair/在 IE7 中被严重破坏。有人可以建议修复吗?

最佳答案

这是因为你正在使用 display: inline-block.content li.shadow-pod .

IE7 只支持display: inline-block在自然元素上inline (比如 <span> ),除非你把它改造成形状。使用这个:

.content li.shadow-pod {
    /* your other rules */

    display: inline-block;
    *display: inline;
    zoom: 1
}

那是使用 Star Property Hack只告诉 display: inline规则。

这是无效的 CSS,但没有坏处。打破验证是可以的,只要您明白自己在做什么。也就是说,您始终可以使用有效的 hack 或 conditional comment相反:

<!--[if lt IE 8]>
<style>
.content li.shadow-pod {
    display: inline;
    zoom: 1
}
</style>
<![endif]-->

另外,请参阅我之前写的这个答案:How to give Internet Explorer different CSS lines?

关于CSS:IE7 需要的帮助,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5732833/

相关文章:

css - 在外部 Div 内居中水平 div?

html - 在一个类中嵌套多个 h 标签的问题

c++ - 调整 QMainwindow 大小以适合 Qdockwidget 大小

AngularJS templateUrl 未在 Internet Explorer 7 中加载模板

javascript - jquery addClass IE7 性能问题

asp.net - 在 asp.net 中使用内联 css 是不好的做法吗?

php - 使用相同后端和不同 CSS 的子域

css - 在 IE7 中调试 CSS 问题?

javascript - AngularJS 路由在 IE7 中不起作用

css - 为什么我的 CSS 下拉菜单在 IE7 中的 DIV 后面打开?