相关疑难解决方法(0)

根据x和y位置获取DIV id

我试图解决的问题是"这个位置是什么?"

得到DIV的x/y位置(偏移量)相当简单,但反过来呢?如何获得给定x/y位置的DIV(或任何元素)的id?

javascript

9
推荐指数
1
解决办法
4092
查看次数

如何获取位于页面中给定位置的DOM元素列表

可能重复:
按绝对坐标定位DOM元素

我想找出位于鼠标点击位置的所有DOM元素的列表.我需要使用javascript或jquery来做到这一点.有人可以建议我如何做到这一点?

html javascript jquery dom mouseevent

6
推荐指数
1
解决办法
571
查看次数

在iPhone的表格单元上触摸事件

我有一个6列8行的表格。

<table border="1" id="patterntable" style="cursor: pointer;">
    <tr>
        <td align="center" width="40" height="40" >&nbsp;</td>
        <td align="center" width="40" height="40" >&nbsp;</td>
        <td align="center" width="40" height="40" >&nbsp;</td>
        <td align="center" width="40" height="40" >&nbsp;</td>
        <td align="center" width="40" height="40" >&nbsp;</td>
        <td align="center" width="40" height="40" >&nbsp;</td>
    </tr>
    <tr>
        <td align="center" width="40" height="40" >&nbsp;</td>
        <td align="center" width="40" height="40" >&nbsp;</td>
        <td align="center" width="40" height="40" >&nbsp;</td>
        <td align="center" width="40" height="40" >&nbsp;</td>
        <td align="center" width="40" height="40" >&nbsp;</td>
        <td align="center" width="40" height="40" >&nbsp;</td>
    </tr>
    <tr>
        <td align="center" width="40" height="40" >&nbsp;</td>
        <td align="center" width="40" height="40" …
Run Code Online (Sandbox Code Playgroud)

javascript iphone jquery touch

0
推荐指数
1
解决办法
1262
查看次数

标签 统计

javascript ×3

jquery ×2

dom ×1

html ×1

iphone ×1

mouseevent ×1

touch ×1