0
我有这样的代码:的onmouseout在父亲打电话时的onMouseOver儿童
<div id='father' style='width:50px; height:50px;overflow:hidden;' onMouseOut="alert('called');">
<div id='container' style='margin-top:0px;width:100%;height:100%;transition: margin 2s;'>
<div style='width: 50px;height:50px;background-color:rgb(255,0,0);' onClick="document.getElementById('container').style.marginTop='-50px'"></div>
<div style='width: 50px;height:50px;background-color:rgb(0,0,255);' onClick="document.getElementById('container').style.marginTop='0px'"></div>
</div>
</div>
如果您点击红色框,蓝色框将从底部...时出现的onMouseOver蓝色框被称为,onMouseOut从父亲也被称为...
你知道一个解决方法,如果鼠标仍然在“父亲”里面看不到警报。
正是我需要的:d就像一个魅力!谢谢。 –