我想知道如何获得HTML元素的X和Y位置,例如img和divJavaScript.
嗨,伙计们 [和女孩们] :)
只是想知道是否可以absolute在 div 中获取字符的位置?
<div class="mycooldiv">
bunch of text is in here and for example some # and some other cool #
</div>
Run Code Online (Sandbox Code Playgroud)
即使用jQuery UI Position也许或其他方式 - 我将如何获得例如的位置#?