简体   繁体   English

与背景图片相关的问题仅在IE8中不显示

[英]Issue related to Background image doesn't show in IE8 only

I have following CSS : 我有以下CSS:

.rwWindowContent, .rwExternalContent
        {
            border-style: groove !important;
            border-width: 1px;
            border-radius: 10px;
            background-image: url(background.jpg) !important;
            border-color: GhostWhite;
        }

the backgound Image added in above css display well in Mozila,chrome, Safari, and IE9.. but it doesn't display in IE8 only.. 在CSS上方添加的背景图片在Mozila,chrome,Safari和IE9中都能很好地显示。但是,仅在IE8中不会显示。

as you can see in following Image all the styles related to Background has been removed by IE8 tool: 正如您在下面的图像中所看到的,与背景相关的所有样式已被IE8工具删除:

在此处输入图片说明

Is there any suggestions ?? 有什么建议吗??

make sure you saved you jpg in RGB mode instead of CMYK. 确保您以RGB模式而不是CMYK保存了jpg。 hope this helps. 希望这可以帮助。

IE 8需要知道容器的宽度和高度(如果为空)。

I think better convert your image from .jpg to .png format. 我认为最好将图像从.jpg转换为.png格式。 This may solve your problem. 这样可以解决您的问题。

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

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