js鼠标移入移出div样式

<!DOCTYPE html>
<html>
	<style type="text/css">
	#div1{
   width: 200px;
   height: 50px;
   background-color: white;
   border: 1px solid ;
       display: none;
}
	</style>
<head>
	<title></title>
</head>
<body>


<input type="checkbox"  onmouseover="document.getElementById('div1').style.display='block'" onmouseout="document.getElementById('div1').style.display='none'">
<div id="div1">为了您的信息安全</div>
</body>
</html>
发布了62 篇原创文章 · 获赞 102 · 访问量 3170

猜你喜欢

转载自blog.csdn.net/weixin_44763595/article/details/104661592
今日推荐