最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
IE6,7,8中Javascript记录光标选中
时间:2011-08-26 编辑:简简单单 来源:一聚教程网
The contents of the source element.The contents of the source element.The contents of the source element.
可以看到开始节点的tagName,还有选中的内容,可以通过去掉开头结尾的html tag,然后用正则判断取到这段html代码在之前的parent.innerHTML的位置,这样偏移量也就取到了,ok,不需要通过判断offset的方式,我们就可以取到开始,结束节点,以及偏移量了
=============================================================
-
上一个: wordpress自动删除重复评论方法
相关文章
- 全程记录开发一个完整的JavaScript组件教程 04-14
- HTML简单购物数量小程序代码展示 10-31
- html canvas实现弹幕功能 10-31
- HTML中空格表示的意义 10-31
- html area标签解读 10-31
- html使用表单标签实现注册页面代码展示 10-31