我有一个输入文本框,当用户的鼠标悬停时,我想在其中显示一些文本区域,给他提供输入文本的信息。 这里是我的HTML代码:当鼠标悬停在输入文本框上时显示一些文本
<html>
<body>
<style type="text/css">
.mouseover
{
}
</style>
<span onmouseover="this.classname='mouseover'" onmouseout="this.classename=''"></span>
<input id="mybox" type="text" />
</body>
</html>
什么是最好的CSS技巧,将有助于做到这一点? 提前感谢您的帮助。
CSS':你试过hover'? – micnic
是的micnic :)我试过@Midhum提供的答案,但它不能在IE8上工作:/ – mounaim