演示地址:http://jqueryui.com/demos/dialog/声明如下:
The basic dialog window is an overlay positioned within the viewport and is protected from page content (like select elements) shining through with an iframe. It has a title bar and a content area, and can be moved, resized and closed with the 'x' icon by default.
有人可以向我解释一下他们的演示如何在 IE6 中隐藏 select
吗?如前所述,但在我的简单 jsFiddle demo 中,select
亮了?
HTML:
<div id="dialog">Hello</div>
<select>
<option>Red</option>
<option>Green</option>
<option>Blue</option>
</select>
JS:
$("#dialog").dialog();
最佳答案
好的。我想到了。显然,查看演示的来源,它们包括 bgiframe并且,如果该插件存在,jQuery UI 会将其与对话框一起使用。
因此,对于任何想知道同样问题的人,只需包含 bgiframe在您的项目中,您就可以开始了。
<小时/>顺便说一句,您可能会认为在他们的演示中的某个地方,他们会提到他们正在使用 bgiframe .
关于jquery - IE6 - jQuery UI 对话框 - 通过覆盖显示的元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6473167/