如何保证下拉菜单项不会被
本人分析了网上多个下拉菜单,发现都有一个缺点,就是下拉菜单的内容会被背景中的<select>元素挡住,即<select>元素会在前面,影响了美观效果,请高手指点。
...全文
请发表友善的回复…
发表回复
y1g1y1 2002-10-08
- 打赏
- 举报
看看袁飞演示程序: 如何盖住(下拉列表框) Select
http://www.csdn.net/Expert/TopicView1.asp?id=797729
http://www.csdn.net/Expert/TopicView1.asp?id=797729
meizz 2002-10-08
- 打赏
- 举报
一、在版面上避开它。
二、在菜单展开时,隐藏select,上面的思归兄说的。
三、用object的方式可以盖住select
二、在菜单展开时,隐藏select,上面的思归兄说的。
三、用object的方式可以盖住select
saucer 2002-10-08
- 打赏
- 举报
SELECT is implemented as a windowed control, it does not support z-index
when you display the menu, try to hide the SELECT:
selectID.style.visibility="hidden";
to show it again, use
selectID.style.visibility="visible";
when you display the menu, try to hide the SELECT:
selectID.style.visibility="hidden";
to show it again, use
selectID.style.visibility="visible";