如何在鼠标悬停图像按钮/图标时显示“标签”?在asp.net webform中 [英] How To Display 'Label' When Mouseover An Image Button/Icon? in asp.net webform

查看:109
本文介绍了如何在鼠标悬停图像按钮/图标时显示“标签”?在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.


这篇关于如何在鼠标悬停图像按钮/图标时显示“标签”?在asp.net webform中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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