如何在MouseOver上的Dropdownlist中显示项目。 [英] How to display items in Dropdownlist on MouseOver.

查看:81
本文介绍了如何在MouseOver上的Dropdownlist中显示项目。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友!!!



如何在MouseOver的Dropdownlist中显示项目。



需要帮助





谢谢。

Hello Friends !!!

How to display items in Dropdownlist on MouseOver.

Need Help


Thanks.

推荐答案

请参阅下面的CodeProject文章解决你的问题。 ToolTipListBox - 带有工具提示的列表框 [ ^ ]
Refer the below CodeProject article to resolve your problem. ToolTipListBox - a list box with tool tips[^]


AFAIK,这在ASP.NET中的下拉列表中是不可能的。您无法在鼠标悬停时打开/展开下拉列表。



此处有相关详细讨论:打开OnFocus活动的下拉列表? [ ^ ]



如果你真的想要这样的行为,请在mouseover上尝试使用textbox和div下面的div。
AFAIK, this is not possible with dropdown in ASP.NET. You cannot open/expand the dropdown on mouseover.

A related detailed discussion here: Opening dropdownlist on OnFocus event?[^]

If you really want such behaviour, try with textbox and div below it on mouseover.


尝试下面的代码只需将这个java脚本添加到drop下来/选择



但要小心这个因为它可能会引起任何UI相关问题。







< asp:dropdownlist id =ddlPostClaimrunat =serveronmouseover =this.size = 5onmouseout =this.size = 1> ;
Try the code below just add this java script to the drop down/select

but be careful with this because it may rise u any UI related issues.



<asp:dropdownlist id="ddlPostClaim" runat="server" onmouseover="this.size=5" onmouseout="this.size=1">


这篇关于如何在MouseOver上的Dropdownlist中显示项目。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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