简体   繁体   English

图像未在IE8中呈现

[英]Image not rendering in IE8

We have the following css working fine in IE11, Chrome and Firefox. 我们的以下CSS在IE11,Chrome和Firefox中运行良好。 But the image is not rendering properly in IE8. 但是图像无法在IE8中正确呈现。

display: inline-block;
vertical-align: middle;
height: 46px;
width: 144px;
font-size: 0;
color: transparent;
background: transparent url("../test.png") no-repeat 0 1px;
background-size: 144px 46px;
color: #fff;

Any help would be appreciated. 任何帮助,将不胜感激。

the background-size property is not supported in IE8. IE8不支持background-size属性。 Support for this property starts with IE9. 对此属性的支持始于IE9。

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

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