<!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>
js鼠标移入移出div样式
猜你喜欢
转载自blog.csdn.net/weixin_44763595/article/details/104661592
今日推荐
周排行