【问题标题】:IE8 positioned background doesn't showIE8定位背景不显示
【发布时间】:2014-05-04 19:07:24
【问题描述】:

我有一点关于图像背景在 IE8 中不显示的问题。这是一个页面http://www.bdo.co.uk/budget/tax-data-guide/corporate-tax,手风琴上的箭头没有显示出来。

css 是:

.closed h2.accordion_h3    {
    background: url(mysource_files/down.png) no-repeat right 10px bottom 10px;
    min-height:24px;
}

.open h2.accordion_h3    {
    background: url(mysource_files/up.png) no-repeat right 10px bottom 10px;
    min-height:24px;
}

有人知道为什么会这样吗?

谢谢!

【问题讨论】:

    标签: css internet-explorer background internet-explorer-8


    【解决方案1】:

    嘿,把你的代码改成这样:

    url(http://www.bdo.co.uk/__data/assets/image/0006/176613/down.png?v=0.1.1) 99% 10px no-repeat
    

    【讨论】:

      【解决方案2】:

      您似乎正在使用在 IE9 之前兼容的 background-position-x 和 background-position-y 属性,如果您想在 IE8 中使用它,那么您需要使用 -ms-background-position-x 和 - ms-background-position-y CSS 扩展

      有用的链接http://docs.webplatform.org/wiki/css/properties/background-position-x

      希望对你有帮助!

      【讨论】:

        猜你喜欢
        • 2015-03-15
        • 1970-01-01
        • 1970-01-01
        • 2011-01-29
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-06-11
        • 1970-01-01
        相关资源
        最近更新 更多