87,955
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
#my01
{
display:block;
width:500px;
height:500px;
margin:60px auto;
background-color:#000;
}
</style>
<script type="text/javascript">
function my()
{
var x1 = document.getElementById("my01");
x1.style.display="none";
}
function my1()
{
var x1 = document.getElementById("my01");
x1.style.display="block";
}
</script>
</head>
<body>
<div id="my01" onmouseover="my()" onmouseout="my1()">
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
#my01
{
display:block;
width:500px;
height:500px;
margin:60px auto;
background-color:#000;
}
#my01:hover{
background-color: transparent;
}
</style>
</head>
<body>
<div id="my01"></div>
</body>
</html>
试试吧