【发布时间】:2012-01-25 21:22:25
【问题描述】:
当鼠标移到按钮上时如何获得悬停消息。
谢谢
【问题讨论】:
-
使用
title属性。 -
看到我的回答了吗?它就在那里。
当鼠标移到按钮上时如何获得悬停消息。
谢谢
【问题讨论】:
title 属性。
使用标题属性。
<input type='button' value='Press me' title='This is my title' />
【讨论】:
title 是一个属性。 input 是标签。
title="<?php echo $count . "reg left" ; ?>"
属性标题在这里很重要。只需添加标题属性并将要给出的消息写入按钮标签。
示例:
<button title="Message needs to be shown">My button</button>
这应该可以正常工作。如果您使用按钮的链接:
<button><a href="http://link.php" title="Msg to be shown">My button</a></button>
【讨论】: