将光标放在按钮控件上时如何显示一些文字? [英] How to show some text while placing the cursor over a button control?

查看:199
本文介绍了将光标放在按钮控件上时如何显示一些文字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个页面中,我有一个提交按钮。当光标放在这个按钮上时,我打算在点击之前通过标签控件向用户显示一些文字。

我使用asp.net 2008.

In one of my pages I have a submit button. When a cursor is placed on this button I intend to show some text through a label control to the user before he clicks.
I use asp.net 2008.

推荐答案

您需要一个工具提示,工具提示可以使用title属性放置在任何html控件上,例如:

You need a tooltip, a tooltip can be placed on any html control using the title attribute, for instance:
<button title="This is a tooltip" />


这篇关于将光标放在按钮控件上时如何显示一些文字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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