<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript">
function closeme(){
document.getElementById("rightip").style.display="none";
}
</script>
<style type="text/css">
#rightip{
position: fixed;
right: 10px;
bottom: 10px;
width: 250px;
height: 200px;
}
.pic{
position: relative;
}
.pic a{
position: absolute;
right: 0px;
top: 0px;
width: 16px;
height: 16px;
background: url("images/icon02.jpg");
background-size: 100%;
}
.pic a:hover{
background-image: url("images/icon01.jpg");
background-size: 100%;
}
</style>
</head>
<body>
<p align="center"><img src="images/pic.png" width="1024"></p>
<div id="rightip">
<div class="pic"><img src="images/snow.gif" alt="">
<a href="#" οnclick="closeme()"></a>
</div>
</div>
</body>
关于怎样关闭悬浮窗口,用到了JavaScript和HTML。