创建带有锚定文本选择的URL [英] create URL with anchor to text selection
本文介绍了创建带有锚定文本选择的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个指向我编写的Web服务的URL, http://mycoolthing.com
,以及一个指向文本选择的#锚em>在该页面上.
I would like to create a URL pointing to a web service I write, http://mycoolthing.com
, together with an #-anchor that refers to a text selection on that page.
在HTML/JS中是否可以创建引用Selection或RangeObject的锚点?
Is is possible in HTML/JS to create an anchor that refers to a Selection or a RangeObject?
推荐答案
基于铬的浏览器现在支持滚动到文本片段
chromium based browsers now support Scroll To Text Fragment
这篇关于创建带有锚定文本选择的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文