Through the input box can display information, a direct use of CSS Title property, the title property can display the information to be prompted, but it is not appropriate to control,
Learn to organize the JS method, that is, the following code:
<! DOCTYPE html>
<meta charset= "Utf-8"/>
<title> move to input box prompt information </title>
<style type= "Text/css" >
#info {background: #ccc; width:120px;padding:5px;border:1px solid #f90; font-size:12px;display:none;}
</style>
<script type= "Text/javascript" >
Window.onload=function ()
{
var iinfo = document.getElementById ("info");
var Ilabel = document.getelementsbytagname ("label") [0];
Ilabel.onmouseover = function ()
{
Iinfo.style.display = "block";
}
Ilabel.onmouseout = function ()
{
Iinfo.style.display = "None";
}
}
</script>
<body>
<form>
<div id= "ch" >
<label><input type= "checkbox"/> Automatic login in two weeks </label>
<div id= "Info" > do not use this feature in Internet cafes, public areas </div>
</div>
</form>
</body>
JS Learning-the mouse through the input box to display the prompt information