<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title>交互输入框</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="布尔教育 http://www.itbool.com" />
<style type="text/css">
#div1 {
width: 300px;
height: 150px;
background: #ccc;
border:1px solid #999;
margin: 5px auto;
display: none;
}
body{text-align: center;
}
</style>
</head>
<body>
<input type="checkbox"
οnmοuseοver="document.getElementById('div1').style.display='block';"
οnmοuseοut="document.getElementById('div1').style.display='none';"/>
<div id="div1">
信息安全
</div>
</body>
</html>
转载于:https://my.oschina.net/u/3586587/blog/1476896