如何解决IE8中的这个错误?错误是Microsoft JScript运行时错误:对象不支持属性或方法'getComputedStyle'
如何在IE8中解决此错误?错误是Microsoft JScript运行时错误:对象不支持属性或方法'getComputedStyle'
请在下面找到代码段。我需要在IE8中工作。请帮忙。
函数loadPseudoElement(元素,类型){
var style = window.getComputedStyle(element,type),>
content = style.content;
if(content.substr(0,3)=== url){
methods.loadImage(_html2canvas.Util .parseBackgroundImage(content)[0] .args [0]);
}
loadBackgroundImages(style.backgroundImage,element);
}
How to solve this error in IE8? The error is Microsoft JScript runtime error: Object doesn't support property or method 'getComputedStyle'
Please find below the code snippet. I need same to be work in IE8. Please help.
function loadPseudoElement(element, type) {
var style = window.getComputedStyle(element, type),
content = style.content;
if (content.substr(0, 3) === url) {
methods.loadImage(_html2canvas.Util.parseBackgroundImage(content)[0].args[0]);
}
loadBackgroundImages(style.backgroundImage, element);
}
检查这个..
http://stackoverflow.com/questions/11161607/jquery-error-in-ie8-object-doesnt -support-this-property-or-method [ ^ ]
check this..
http://stackoverflow.com/questions/11161607/jquery-error-in-ie8-object-doesnt-support-this-property-or-method[^]