【问题标题】:Why is this code not compatible with ie? [duplicate]为什么这段代码与ie不兼容? [复制]
【发布时间】:2012-01-26 10:06:24
【问题描述】:

可能重复:
Can I have multiple background images using CSS?

我正在创建一个网站,我遇到了该网站在 Firefox 上显示正常的问题,但是在我尝试过的任何版本的 ie 中都不能正确显示。(我不确定新版本的即,我没有安装它们) 这是代码

#footer {
    position: relative;
    clear: both;
    padding: 0px 0 20px 0px;
    background: url(images/footer-end-left.png) left top no-repeat, url(images/footer-end-right.png) right top no-repeat, url(images/footer-center.png) center top repeat-x, #C4C4C4;
}

【问题讨论】:

  • 你试过哪个版本的IE?
  • 我只试过8及以下版本。我在学校尝试访问我的网站,那时我才意识到发生了什么。

标签: css internet-explorer


【解决方案1】:
【解决方案2】:

Internet Explorer 一次只支持一张背景图片。多个背景图像是 CSS 3 的一部分。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-01-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-11
    • 2012-11-04
    • 2012-03-23
    相关资源
    最近更新 更多