.a{
position:relative;
background-color:red;
width:400px;
height:100px;
}
.b{
position:absolute;
left:10;
background-color:green;
width:100px;
height:100px;
}
offsetLeft不能赋值,可以通过obj.style.left=10来修改
position:relative;
background-color:red;
width:400px;
height:100px;
}
.b{
position:absolute;
left:10;
background-color:green;
width:100px;
height:100px;
}
offsetLeft不能赋值,可以通过obj.style.left=10来修改
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货