jQuery .hover 其下有元素

发布于 2025-01-07 09:46:26 字数 214 浏览 2 评论 0原文

请查看: JSFiddle 示例

我想要得到的是一个有效的悬停4 个方格中的每一个。例如,如果第一个蓝色方块悬停,并且我将鼠标稍微向右滚动,直到它进入绿色方块(位于悬停的蓝色方块下方),则绿色方块应该悬停。

希望有人可以帮忙!

please check out: JSFiddle Example

What I want to get is a working hover with every of the 4 squares. For example if the first blue square is hovered and I scroll the mouse a little bit to the right until it enters the green square (which is under the hovered blue square) the green square should get hovered.

Hope someone can help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

万劫不复 2025-01-14 09:46:26

尝试这个 jsFiddle 解决方案,其中我只更改了 JavaScript。

Try this jsFiddle solution in which I only changed the JavaScript.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文