gpt4 book ai didi

javascript - 检测两个div是否重叠

转载 作者:太空狗 更新时间:2023-10-29 15:25:09 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
How to detect if two divs touch with jquery?

我花了很多时间试图找出如何检测两个 div 是否重叠。
我尝试了 gamequery 插件并像这样使用它:

$("#" + checkform).collision("#" + checkform + "w").each(function(){
alert("Collision");
});

你会使用 gamequery 插件和/或你会怎么做?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com