Ich habe dieses Beispiel:Scrollbare div ist nicht scrollbaren, wenn über das Bild schwebt
<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;
}
}
Hover auf das Bild, und Sie werden von Bild nicht außerhalb bewegen können, schweben, und Sie können blättern. Ich muss scrollen können, auch wenn ich über dem Bild schwebe.
Was mache ich falsch?
Warum Sie ein ''
Schließen Sie auch Ihr '' Tag, das löst das Problem zwar nicht, aber fügen Sie ein'/'am Ende hinzu. '' – Tikkes
Ich muss das