代码有待改善,多多见谅
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>对联广告</title>
<style>
#leftFloat{
width: 200px;
height: 280px;
background-color: red;
position: fixed;
left: 0px;
/*IE6兼容*/
_position:absolute;
_top:expression(document.documentElement.scrollTop+(document.documentElement.clientHeight-this.offsetHeigh)/3);
}
#rightFloat{
width: 200px;
height: 280px;
background-color: red;
position: fixed;
right: 0px;
_position:absolute;
_top:expression(document.documentElement.scrollTop+(document.documentElement.clientHeight-this.offsetHeigh)/3);
}
.close{
height: 20px;
width: 200px;
background-color: pink;
position: absolute;
bottom: 0px;
left:0px;
text-align: center;
font-size: 20px;
}
.close a{
text-decoration: none;
color: #000;
}
</style>