<!DOCTYPE html>
<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">
body{ margin:0; padding:0;}
.total{ width:960px; margin:0 auto;}
.main,.footer,.head{ font-size:30px;}
.head{ height:100px; background:#ccc}
.main{ height:485px; background:#FCC}
.footer{ height:50px; background:#9CF}
/*广告样式*/
.pic{
width:100%;
height:100%;
background-color:rgba(0,0,0,0.5);
position:fixed;
top:0px;
right:0px;
}
.adv{
position:fixed;
top:60px;
left:360px;
}
</style>
</head>
<body>
<!--应用jQuery-->
<script type="text/javascript" src="js/jquery-3.0.0.js"></script>
<script type="text/javascript">
$(".adv").click(function(){
$(".adv").hide();
$(".pic").hide();
});
</script>
<!--悬浮广告-->
<div class="pic">
<img src="img/103-160Q509544OC.jpg" class="adv">
</div>
<div class="total">
<div class="head">jquery-2.1.4 (注!jquery-2.0以上版本不再支持IE 6/7/8)</div>
<div class="main">jquery-2.1.4 (注!jquery-2.0以上版本不再支持IE 6/7/8)</div>
<div class="footer">jquery-2.1.4 (注!jquery-2.0以上版本不再支持IE 6/7/8)</div>
</div>
</body>
</html>