日期:2014-05-16  浏览次数:20258 次

jquery 获取 文档 行列 不是鼠标的位置
比如:


<div id="id">
<div id="id0">
This is some sample text. Select this text. This is some sample text. Select this text. This is some sample text. Select this text. 
</div>
<div id="id1">
This is some sample text. Select this text. This is some sample text. Select this text. This is some sample text. Select this text. 
</div>
<div id="id2">
This is some sample text. Select this text. This is some sample text. Select this text. This is some sample text. Select this text. 
</div>
</div>


我想在上边文档中,鼠标点击的任何文档位置加入 一个图标 , 然后保存 图标的位置在数据库中, 这样,需要知道鼠标点击了文档的行列位置. 注意: 文档 和 图标位置 是 分开保存的.


------解决方案--------------------
靠自己永远强大!
------解决方案--------------------
看你发的那个帖子。。