亲爱的朋友, 我在ASP.Net3.5中有一个网站,该网站已迁移到ASP.Net4.0.在我的网站上,如果我打开一个带有组合框的表单,并且当我打开组合框并同时选择顶部菜单时,我也看不到顶部菜单;菜单项是由于在窗体上打开了组合框. 有人建议我应该设置组合框的 z-index ,这样就不会发生,但我不能这样做. 请外面的任何人知道为什么会出现此问题,然后请帮帮我. 谢谢 Varun Sareen
Dear Friends, I have a website in ASP.Net3.5 which i have migrated to ASP.Net4.0. In my website if i open a form having a combo box and when i open the combo box and at the same time select the top menu also then I am not able to see the top menu; menu items due to the opened combo box on the form. Some one suggested me that i should set the z-index of the combo box then it will not occur but i am not able to do the same. Please anyone out there knows why this problem is occurring then kindly help me out. Thanks Varun Sareen
推荐答案只需在您的菜单中添加以下类 Just add following class to the your Menu <style type="text/css"> .AlwaysTopMenu { z-index: 10000; position: absolute; } </style> <body> <div id="dvMenu" class="AlwaysTopMenu"> </div> </body>
谢谢, Imdadhusen
Thanks, Imdadhusen
更多推荐
顶部菜单重叠在窗体中打开的组合框
发布评论