简体   繁体   English

IE8 CSS背景图片URL被重置为url(“null”)

[英]IE8 CSS background image URL being reset to url(“null”)

I have an issue at the moment where in IE8 my background-image properties in CSS files are being changed to url("null") instead of the original URL that's in there. 我有一个问题,在IE8中我的CSS文件中的背景图像属性被更改为url(“null”),而不是原来的URL。

Not sure where to look, but I suspect it could be selectivizr or JQuery UI. 不知道在哪里看,但我怀疑它可能是selectivizr或JQuery UI。

Anyone experience this problem before? 以前有人遇到过这个问题吗

EDIT: Here's the CSS code 编辑:这是CSS代码

span.k-icon
{
    background-image: url('http://cdn.kendostatic.com/2012.2.710/styles/Default/sprite.png');
}

EDIT 2: I removed selectivizr out of the equation, which solves the problem. 编辑2:我删除了selectivizr的方程式,这解决了问题。 So this is definitely something to do with selectivizr. 所以这绝对与选择性有关。 Regards, Jacques 问候,雅克

I found the answer. 我找到了答案。 This is a limitation in Selectivizr. 这是Selectivizr的一个限制。

You can't use CDNs or external assets with selectivizr, CSS files and the like must be hosted on the same domain and relative paths must be used. 您不能将CDN或外部资产与选择器一起使用,CSS文件等必须托管在同一域中,并且必须使用相对路径。

Here's a post about it. 这是关于它的帖子。 http://bigredtin.com/2010/selectivizr-with-css-on-a-cdn/ http://bigredtin.com/2010/selectivizr-with-css-on-a-cdn/

Regards, Jacques 问候,雅克

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

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