SimpleModal 是 JQuery 還算蠻好用的套件

demo 如下

http://www.ericmmartin.com/projects/simplemodal-demos/

 

就這樣用

      $("#open_sites").modal({
          close :false,
          onOpen: function (dialog) {
           dialog.overlay.fadeIn('slow', function () {
        dialog.data.hide();
        dialog.container.fadeIn('slow', function () {
       dialog.data.slideDown('slow');
        });
        });      
          }
      }); 

本來在 chrome + firefox 都好好的,跑到 IE 又有問題

錯誤訊息 : 未執行    

這錯誤訊息真是淺顯易懂

 

Clipboard02.jpg            

 

然後找了好久找到解決方式

http://code.google.com/p/simplemodal/issues/detail?id=7

 

有人講了下面這段話

 

Still a problem in 1.3.5 with jQuery 1.4.2. Issue identified in comment #1. Solution there was to set ieQuirks = false, however, that may break in earlier versions of IE. 

Suggest change from:
ieQuirks = $.browser.msie && !$.boxModel;

To: 
ieQuirks = jQuery.support.boxModel; 

Tested in IE8 Standards mode, IE7 compatibility mode, Firefox 3.6.6, Opera 10.51, Google Chrome 5.0.375.99

 

然後就莫名奇妙結案了

    全站熱搜

    小雕 發表在 痞客邦 留言(0) 人氣()