JS对联广告代码初级
1个回答
展开全部
<!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)/2);
}
<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)/2);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询