textRange选择MSIE [英] textRange selection MSIE

查看:84
本文介绍了textRange选择MSIE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在Firefox中通过编程轻松地在2个以上元素上设置选择, 但是IE还是没有成功,所以我希望这里的任何人都能帮助我.

I can easily set the selection on 2+ elements programatically in Firefox, But have had no success with IE so I hope anyone here can help me with this.

推荐答案

IE不支持以编程方式或手动方式选择并发的多个TextRanges.您可以具有多个选定元素的 ControlRange ,而不是一段文字.

IE doesn't support multiple concurrent selected TextRanges, whether programmatically or manually selected. You can have a ControlRange of multiple selected elements, but not stretches of text.

其他将Web浏览器控件嵌入到

It's possible for other browsers that embed the Web Browser control to support multiple text ranges:

主机应用程序可以提供多种选择机制,并且可以返回代表不连续选择的TextRange对象的集合.

Host applications can provide a multiple selection mechanism and can return a collection of TextRange objects that represents discontinuous selections.

但是,到目前为止,IE尚不支持,而且我不知道其他任何支持该功能的宿主应用程序.或确实是除Firefox 3之外允许使用的其他任何浏览器.

But as of today IE doesn't, and I don't know of any other host application that does. Or indeed of any other browser than Firefox 3 that allows it.

这篇关于textRange选择MSIE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆