【问题标题】:Two Body Background Images Disappear in IE8两个身体背景图像在 IE8 中消失
【发布时间】:2013-07-04 19:42:57
【问题描述】:

我使用了两张图片作为我的身体背景;一个作为顶部的渐变,另一个在其下方/后面重复。

这一切都完全按照我的意愿工作 - 但在 IE8 中消失了!

CSS:

body {
    font-family: Helvetica, Arial, sans-serif;
    padding:0;
    margin:0;
    position:absolute;
    background-image: URL('./img/backtop.jpg'), URL('./img/back.jpg') ;
    background-position: top center, top center ;
    background-repeat: repeat-x, repeat ;
    width: 100%;
}

我做错了什么?

【问题讨论】:

标签: css image internet-explorer-8 background


【解决方案1】:

多背景是 CSS3 规范,因此在 IE8 中不可用。

CSS Multiple Backgrounds not working on IE8

【讨论】:

    【解决方案2】:

    这是 CSS3 的功能,所以它在 IE8 中不起作用。可以使用伪元素来复制功能,例如 detailed here,但合并图像可能是最简单的方法。

    【讨论】:

      猜你喜欢
      • 2011-05-26
      • 2011-08-12
      • 2012-03-05
      • 1970-01-01
      • 1970-01-01
      • 2013-07-17
      • 1970-01-01
      • 2012-03-31
      • 1970-01-01
      相关资源
      最近更新 更多