2011-09-02 135 views

回答

4

我有同样的问题。我做了以下事情。

if (img[0].complete || $.browser.msie) { 
     //fetching data from sallimage if was previously loaded 
     smallimage.fetchdata(); 
     if ($(".zoomPad", el).length == 0) obj.create(); 
    } 

它现在有效。

+2

你把这个代码放在哪里? – pspahn

+0

解决了我的问题! – Digits

+1

这帮助我解决了悬停在您重新加载页面后才起作用的问题。谢谢你太多了! – creativetim

3

jqZoom不是为我工作在IE8,所以我固定的问题如下: 在舞台类=> this.append功能,有一个变量“厚度”,这是在一个条件内定义的。我将它定义在条件之外,现在它对我来说工作得很好。

  var thickness = 1; 
      if (settings.zoomType == 'innerzoom') { 
       this.node.css({ 
        cursor: 'default' 
       }); 
       thickness = (smallimage.bleft == 0) ? 1 : smallimage.bleft; 
       $('.zoomWrapper', this.node).css({ 
        borderWidth: thickness + 'px' 
       });  
      }