顶部菜单重叠在窗体中打开的组合框 [英] Top Menu Overlapping the combo box opened in the form

查看:53
本文介绍了顶部菜单重叠在窗体中打开的组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我在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


这篇关于顶部菜单重叠在窗体中打开的组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆