jquery dialog ie6兼容select

解决ie6下dialog拉动select会闪动的问题,之前用bgiframe虽然能遮盖会,但拖动依然有问题。

var browser=$.browser;
var isIE6=browser.msie==true&&browser.version==6.0;  //确认是否ie6
var allselects;

$("#productNavtree").dialog({
  autoOpen: false,
  height: 450,
   350, 
  modal: true,
  open:function(){if(isIE6){allselects=$("select:visible");allselects.hide()}},
  close:function(){if(isIE6){allselects.show()}},
  button...

});

打开的时候隐藏select,关闭的时候显示

原文地址:https://www.cnblogs.com/onlywujun/p/2808465.html