Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
http://jsfiddle.net/zyVUU/
在小提琴中,如果我开始拖动 div,然后保持 mousedown 转到 over CSS 框,离开鼠标(mouseup)然后回到橙色 div,滚动条跟随鼠标。
它没有检测到 mouseup 事件。我怎么能强迫它?
那是因为它div有一个pointer-events: none;属性。
div
pointer-events: none;
CSS 属性pointer-events允许作者控制特定图形元素在什么情况下(如果有)可以成为鼠标事件的目标。
pointer-events