顶部菜单重叠在窗体中打开的组合框

编程入门 行业动态 更新时间:2024-10-17 11:33:13
本文介绍了顶部菜单重叠在窗体中打开的组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

亲爱的朋友, 我在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

更多推荐

顶部菜单重叠在窗体中打开的组合框

本文发布于:2023-11-29 20:14:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1647513.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:组合   窗体   菜单

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!