[英]Issue related to Background image doesn't show in IE8 only
我有以下CSS:
.rwWindowContent, .rwExternalContent
{
border-style: groove !important;
border-width: 1px;
border-radius: 10px;
background-image: url(background.jpg) !important;
border-color: GhostWhite;
}
在CSS上方添加的背景图片在Mozila,chrome,Safari和IE9中都能很好地显示。但是,仅在IE8中不会显示。
正如您在下面的图像中所看到的,与背景相关的所有样式已被IE8工具删除:
有什么建议吗??
确保您以RGB模式而不是CMYK保存了jpg。 希望这可以帮助。
IE 8需要知道容器的宽度和高度(如果为空)。
我认为最好将图像从.jpg
转换为.png
格式。 这样可以解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.