如何在鼠标悬停图像按钮/图标时显示“标签”?在asp.net webform中

问题描述:

如何在鼠标悬停图像按钮/图标时显示标签?在asp.net webform

How To Display 'Label' When Mouseover An Image Button/Icon? in asp.net webform

嘿伙计,



你想显示工具提示吗? ?如果是,那么有一个名为ToolTip的控件关联的属性只提供ToolTip =Hello,并且将显示悬停Hello。



如果这样那么你可以使用JavaScript的OnHover()事件,首先你需要将Label的visible属性设为false,然后从JavaScript中将它的可见性设为True。
Hey Buddy,

Do you want to show the tool tip?? If yes then there is a property associated with controls named as "ToolTip" just provide ToolTip="Hello" and on hover "Hello" will be shown.

If this is not a case then you can use the OnHover() event of JavaScript, firstly you need to make the visible property of Label as false and then from the m the JavaScript make it's visibility as True.