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.
我有 2 个相邻的 div 我希望 mouseleave 在鼠标离开 2 个 div 时触发,而不是在它离开其中一个时触发。
我怎么能用jquery做到这一点?
干杯
你可以用另一个 div 包围这两个 div 并在上面捕捉 mouseleave。