我在ie中有background-size的问题。
这是我的html中的meta标签:
<meta http-equiv="X-UA-Compatible" content="IE=8">
CSS部分:
background-image: url('images/nav-logo.png');
background-size: cover;
width: 108px;
height: 86px;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/nav-logo.png', sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/nav-logo.png', sizingMethod='scale')"
我在ie 11中打开了页面,但是大小没有变化。请帮帮我。
您可以尝试以下方法:
background: url(images/nav-logo.svg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句