我有这个例子:
<div class="container">
<div class="box">
<object class="object" data="http://www.marketingvox.com/wp/wp-content/uploads/2009/12/darpa-balloon.thumbnail.jpg">
<img class="image" src="http://www.marketingvox.com/wp/wp-content/uploads/2009/12/darpa-balloon.thumbnail.jpg">
</object>
</div>
</div>
.container {
width: 200px;
height: 500px;
overflow: scroll;
background: red;
}
.box {
top: 20px;
left: 20px;
width: 50px;
height: 1000px;
position: relative;
}
.object {
position: absolute;
}
.image {
top: 50px;
position: absolute;
cursor: pointer;
}
}
将鼠标悬停在图像上,您将无法滚动,将鼠标悬停在图像之外,您将可以滚动。即使将鼠标悬停在图像上,我也需要能够滚动。
我究竟做错了什么?