jquery is(":hidden") is(":visible")问题

在ie8里jqueryControl.is(":hidden") 运行正常

ie9不正常

最后自己写了isHidden方法

直接用的style.display == "none"

实际jquery的方法很强大

  • They have a CSS display value of none.
  • They are form elements with type="hidden".
  • Their width and height are explicitly set to 0.
  • An ancestor element is hidden, so the element is not shown on the page.

不过在我的项目里style.display == "none"够用了

 

在ie9里jqueryControl.is(":visible") 运行正常

ie8不正常

ie9 vision:9.0.8112.16421 Update Visions:RTM(KB982861)

你可能感兴趣的:(jquery,ie9,hidden,visible)