简体   繁体   English

除非禁用渐变,否则背景不会在IE9中显示

[英]Background not showing up in IE9 unless gradient is disabled

I have the following code: 我有以下代码:

body{
  font-family : Arial, helvetica, verdana;
  background: url('../images/waves.png');
  background-position: 50% 0%;  
  background-repeat: no-repeat;
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80848c', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
}

and the result in IE9 is that the gradient is rendered and the image doesn't show. IE9中的结果是呈现了渐变并且图像不显示。 I have read this question and followed it to the last letter. 我已经阅读了这个问题,并将其跟到最后一封信。 This person was able to solve his problem but I am lost as to what I am missing. 这个人能够解决他的问题,但我迷失了自己。 What I do know that if I disable the gradient is that it'll show up (in Dev mode) The document uses a html5 doctype (if this helps). 我所知道的是,如果禁用渐变,它将显示出来(在Dev模式下)。该文档使用html5 doctype(如果有帮助)。

You should put 2 extra digids at startColorStr like this: 您应该在startColorStr上放置两个额外的digid,如下所示:

startColorstr="#80848c88"

it will work perfectrly. 它会完美地工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM