编译CSS时,出现以下CSS错误:
span.icon-hcp {
filter: progid: DXImageTransform.Microsoft.AlphaImageLoader(src='../images/icon-hc.jpg', sizingMethod='scale') !important;
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader( src='../images/icon-hc.jpg', sizingMethod='scale')" !important;
background-image: none !important;
}
错误:
>>> Change detected to: style.scss
error style.scss (Line 13838: Invalid CSS after "
filter: progid": expected ";", was ": DXImageTransf...")
我找不到上面的CSS代码有什么问题。请帮忙。
最佳答案
删除progid: DXImageTransform
=> progid:DXImageTransform
中的空格
span.icon-hcp {
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/icon-hc.jpg', sizingMethod='scale') !important;
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader( src='../images/icon-hc.jpg', sizingMethod='scale')" !important;
background-image: none !important;
}