简体   繁体   English

当ap:dialog的modal属性设置为true时,h:selectOneMenu始终启用。 IE6

[英]h:selectOneMenu is always enable when a p:dialog's modal attribute was set true. IE6

h:selectOneMenu is always enable when ap:dialog shows (the dialog's modal attribute was set true.) IE6 当ap:dialog显示时(对话框的模式属性设置为true),h:selectOneMenu始终启用。

But, in IE8 or other browsers, it works well. 但是,在IE8或其他浏览器中,它运行良好。

hm, sounds like you are refering to the select menu is visible even though it should be hidden behind other elements? 嗯,听起来像是您所指的选择菜单,即使它应该隐藏在其他元素的后面,也是可见的?

it is an ie6 problem with select boxes (and not a jsf problem), the solution i use is a component that contains the code below, that i include in any menus etc that might appear on top of select boxes 这是带有选择框的ie6问题(而不是jsf问题),我使用的解决方案是一个包含以下代码的组件,我将其包含在任何菜单中,这些菜单可能会出现在选择框的顶部

    <!-- hack: make the selectBoxes behind the div really hidden -->
<script>
document.write('&lt;!--[if lte IE 6.5]&gt;&lt;iframe src="javascript:false;"       
                   class="hiddenIframeMenu"&gt;&lt;/iframe&gt;&lt;![endif]--&gt;');
</script>

the css: CSS:

.hiddenIframe { display:none; display:block; position:absolute; top:0; left:0;z-index:-1; filter:mask(); width:3210px; height:3210px; }

more info about the bug + solution can be found here: 有关错误+解决方案的更多信息,可以在这里找到:

http://www.targetprocess.com/agileproductblog/2006/07/ie6-select-and-z-index-problem.html http://www.targetprocess.com/agileproductblog/2006/07/ie6-select-and-z-index-problem.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM