像控件一样创建下拉菜单

编程入门 行业动态 更新时间:2024-10-10 07:25:09
本文介绍了像控件一样创建下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我创建了一个多选下拉控件,它在div中显示一个复选框列表,作为单击控件时的下拉列表。但是当显示它时,它会移动它下面的其他控件。如何在点击下拉列表时显示此div。如果下拉控件下方有任何元素,div将显示在其他元素上方。

解决方案

看看这篇文章: stackoverflow/questions/3544722/how-do-i-overlay-a-menu-ontop-the-rest-of-my-site [ ^ ] 应该有帮助。

I have created a multi select dropdown control, which displays a checkbox list, inside a div , as its dropdown on clicking on the control. but when this is displayed it moves the other controls below it. how can i make this div appear like when a dropdownlist is clicked.so that if there is any elements below the dropdown control ,the div will appear above the other elements.

解决方案

talk a look at this post :stackoverflow/questions/3544722/how-do-i-overlay-a-menu-ontop-the-rest-of-my-site[^] It should help.

更多推荐

像控件一样创建下拉菜单

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

发布评论

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

>www.elefans.com

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