【问题标题】:Background image css not display in IE7, IE8IE7、IE8不显示背景图片css
【发布时间】:2014-01-16 10:43:03
【问题描述】:

我正在尝试使用 css 为 div 提供背景图像。这是我的css

.header {
    background: url("../images/header1.png") no-repeat scroll right 15px rgba(0, 0, 0, 0);
    height: 55px;
    padding: 5px 0 0;
    width: 100%;
}

即使在 IE9 和 IE10 上也可以在 firefox 和 chrome 上正常工作,但在 IE8 或更旧版本中无法正常工作。我已经用谷歌搜索过,也提到了这个问题,但它没有帮助。

Background image not showing IE8

【问题讨论】:

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


【解决方案1】:
 .header
    {
    background: url("../images/header1.png");
    background-repeat:no-repeat;
    background-position:right 15px;
    height: 55px;
    padding: 5px 0 0;
    width: 100%;
    }

【讨论】:

    【解决方案2】:

    在 IE7/IE8 中不支持 rgba http://css-tricks.com/rgba-browser-support/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多