0
我正在使用Jquery插件,旋轉v2.2。 http://code.google.com/p/jqueryrotate/Jquery旋轉插件IE7
在IE7中,我看到以下錯誤。
SCRIPT5007:無法獲得屬性的值「removeChild之」:對象爲空或未定義
_Loader:(function()
{
if (IE)
return function()
{
var width=this._img.width;
var height=this._img.height;
this._img.parentNode.removeChild(this._img); ***//Error Here***
this._vimage = this.createVMLNode('image');
this._vimage.src=this._img.src;
this._vimage.style.height=height+"px";
this._vimage.style.width=width+"px";
this._vimage.style.position="absolute"; // FIXES IE PROBLEM - its only rendered if its on absolute position!
this._vimage.style.top = "0px";
this._vimage.style.left = "0px";
/* Group minifying a small 1px precision problem when rotating object */
this._container = this.createVMLNode('group');
this._container.style.width=width;
this._container.style.height=height;
this._container.style.position="absolute";
this._container.setAttribute('coordsize',width-1+','+(height-1)); // This -1, -1 trying to fix that ugly problem
this._container.appendChild(this._vimage);
this._temp.appendChild(this._container);
this._temp.style.position="relative"; // FIXES IE PROBLEM
this._temp.style.width=width+"px";
this._temp.style.height=height+"px";
this._temp.setAttribute('id',this._parameters.id);
this._temp.className=this._parameters.className;
this._BindEvents(this._temp,this._parameters.bind);
_finally.call(this);
}
else