菜单控件的组合框设计问题 [英] combo box desing problem with menu control

查看:60
本文介绍了菜单控件的组合框设计问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

项目在asp.net 3.5中,并且在正常运行的主用户Java脚本菜单控件中,但该页面具有组合框,该页面菜单项隐藏了组合框和列表框.
请给我解决方案....

Project is in asp.net 3.5 and in master user java script menu control that is woking fine but that page has combo box , that page menu item is hide with combo box and list box.
please give me solution....

推荐答案



没有简单直接的解决方案可以解决您的问题,它的经典问题和解决方案取决于不同的情况.一种解决方法是使用框架隐藏这些下拉菜单.
打开菜单时,请打开菜单后面的虚拟框架.
您可以在div中创建框架并在打开菜单时显示.关闭菜单时隐藏div.
主页的z-index-> x
包含伪帧的div的z索引-> x + 1
菜单的z-index-> x + 2
您需要通过每次尝试不同的值来找到X的确切值.IE将自动隐藏下拉菜单,并且在您隐藏该框架后,IE会再次显示下拉菜单.

您可以从下面的此链接中获取更多详细信息
http: //weblogs.asp.net/bleroy/archive/2005/08/09/how-to-put-a-div-over-a-select-in-ie.aspx [


there is no simple and straight solution to your problem, its a classic problem and solution depends upon different scenario.One workaround could be using frames to hide those dropdowns.
When opening the menu, open a dummy frame behind the menu.
You can have the frame created in a div and display as you open the menu. hide the div while closing the menu.
z-index of main page -> x
z-index of div containing dummy frame -> x+1
z-index of menu -> x+2
you need to find the exact value of X by trying different value each time.IE will automatically hide the dropdowns and as soon as you hide that frame, IE will show the dropdowns again.

you can get more details from this link below
http://weblogs.asp.net/bleroy/archive/2005/08/09/how-to-put-a-div-over-a-select-in-ie.aspx[^]

hope this will help.


这篇关于菜单控件的组合框设计问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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