Have you ever wanted to create a link that goes to a specific part of a long web page? Chrome 80 makes that possible with a new deep linking feature called “Scroll To Text Fragment.”

您是否曾经想过创建一个链接到长网页的特定部分? Chrome 80通过称为“ 滚动到文本片段 ”的新深层链接功能使之成为可能。

This feature doesn’t require any special effort on the part of a website’s developer. You can create deep links to any web page on any website. However, these links will only work in Google Chrome 80 for now. (Click menu > Help > About Google Chrome to check if you have the latest version of Chrome installed.)

此功能不需要网站开发人员的任何特殊工作。 您可以创建指向任何网站上任何网页的深层链接。 但是,这些链接目前仅适用于Google Chrome 80。 (单击菜单>帮助>关于Google Chrome,以检查是否安装了最新版本的Chrome。)

如何创建滚动到文本片段的链接 (How to Create Links That Scroll to a Text Fragment)

Visit the following link to take a look at this feature in action if you’re using Google Chrome. After you click this link, Chrome will load our homepage and then scroll down to the bottom of it and highlight the “About Us” text:

如果您使用的是Google Chrome浏览器,请访问以下链接以了解此功能的实际作用。 单击此链接后,Chrome将加载我们的主页,然后向下滚动到其底部并突出显示“关于我们”文本:

howtogeek.com/#:~:text=about%20us

howtogeek.com/#:~:text=about%20us

We didn’t do anything special to enable this on our website. Chrome pays attention to the parameter at the end of the URL. When you load the web page, it scrolls to the text that matches the what you’ve specified in the URL and highlights it.

我们没有做任何特别的事情来在我们的网站上启用它。 Chrome会注意URL末尾的参数。 加载网页时,它会滚动到与您在URL中指定的内容匹配的文本并突出显示。

Update: To simplify this process, Google has created a browser extension and bookmarklet you can use instead. You don’t have to write the links by hand—unless you want to.

更新 :为了简化此过程,Google创建了浏览器扩展程序和小书签,您可以改用 。 除非您愿意,否则不必手工编写链接。

To use this feature in its most basic form, visit a web page and add #:~:text=WORD to the end of the web page’s address, replacing “WORD” with a word of your choosing.  Use “%20” in place of a space character.

要以最基本的形式使用此功能,请访问网页并将#:~:text=WORD到网页地址的末尾,用您选择的单词替换“ WORD”。 使用“%20”代替空格字符。

For example, let’s say you want to create a link to the word “competitions” on the Wikipedia article about Dogs. You’d take the address https://en.wikipedia.org/wiki/Dog and add #:~:text=competitions . The resulting link would be:

例如,假设您要在Wikipedia上有关“狗”的文章上创建指向“竞争”一词的链接。 您需要输入地址https://en.wikipedia.org/wiki/Dog并添加#:~:text=competitions 。 结果链接为:

https://en.wikipedia.org/wiki/Dog#:~:text=competitions

https://zh.wikipedia.org/wiki/狗#:〜:text =竞争

This feature also supports more complicated instructions rather than simply specifying a word or two. This may help on more complicated documents. You can read the draft Text Fragments standards document for more technical information.

此功能还支持更复杂的指令,而不仅仅是指定一个或两个单词。 这可能有助于处理更复杂的文档。 您可以阅读文本片段标准草案文档,以获取更多技术信息。

There have been some discussions about privacy concerns with this feature, but it’s already available in the stable release Google Chrome 80. Other browsers haven’t yet signed on.

已经对该功能的隐私问题进行了一些讨论,但是在稳定版Google Chrome 80中已经可用。其他浏览器尚未登录。

翻译自: https://www.howtogeek.com/658842/how-to-use-google-chromes-new-deep-linking-feature/

如何使用Google Chrome浏览器的新深层链接功能相关推荐

  1. Google Chrome浏览器将阻止混合内容–您准备好了吗?

    Recently, Google Chrome announced that they will soon start blocking mixed content also known as ins ...

  2. Google Chrome浏览器必备的20个插件

    Google Chrome浏览器虽然与火狐浏览器有所区别,不过他们都是很开放的浏览器产品,所以也有许多有用的插件,这些插件对于日常生活与网络冲浪都很有用,比如网银,炒股等. Google Chrome ...

  3. 如何在Google Chrome浏览器中启动JavaScript调试器?

    使用Google Chrome浏览器时,我想调试一些JavaScript代码. 我怎样才能做到这一点? #1楼 在Chrome浏览器中按F12功能键以启动JavaScript调试器,然后单击" ...

  4. 作为Web开发人员,我为什么喜欢Google Chrome浏览器

    在Google Chrome浏览器出来之前,我一直使用FireFox,因为FireFox的插件非常丰富,更因为FireFox有强大的Firebug,对于前端开发可谓神器. 在Chrome出来的时候,我 ...

  5. chrome 固定缩放比例_您如何调整Google Chrome浏览器的用户界面缩放比例?

    chrome 固定缩放比例 Everything can be going along nicely until a program gets a new update that suddenly t ...

  6. java实现浏览器ui中的收藏夹_谷歌改进Google Chrome浏览器中的PDF浏览器 带来全新UI...

    最近,谷歌一直在不断地改进在Chrome浏览器的PDF浏览器.例如,它开发了一个选项,以查看PDF的两页视图,并让你保存PDF表格.但这并不足够,由于目前的用户界面信息贫乏容易引发误解和困扰,谷歌正在 ...

  7. Google Chrome 浏览器——隐藏功能及快捷键

    Google Chrome 浏览器 Google Chrome是一款由Google公司开发的网页浏览器,该浏览器基于其他开源软件撰写,包括WebKit,目标是提升稳定性.速度和安全性,并创造出简单且有 ...

  8. 如何判断您是否拥有32位或64位版本的Google Chrome浏览器

    Google Chrome is extremely popular with our readers, but did you know that they also have a 64-bit v ...

  9. Google Chrome浏览器JS调试工具

    作为Web开发人员,我为什么喜欢Google Chrome浏览器 [原文地址:http://www.cnblogs.com/QLeelulu/archive/2011/08/28/2156402.ht ...

最新文章

  1. 夜间奇异规范:夜间高效自监督单目深度估计(ICCV 2021)
  2. android画一个圆形图片组件
  3. ABAP术语-World Wide Web
  4. 跨多个专业的从业者想转行做单片机怎么办
  5. 本科论文房地产公司财务风险评价与控制研究
  6. 服务器多开安卓系统,安卓云服务器能多开吗
  7. Linux文件补全功能,Linux系统自动补全命令有哪些
  8. oracle数据错误循环冗余检查,Oracle数据恢复:文件 数据错误(循环冗余检查) 解决...
  9. 成长的思考:如何在工作中保持高速的自我成长
  10. 从零开始搭建完整的电影全栈系统(六)——影片Api示例、说明及应用
  11. python保存图片到指定路径_python 抓取页面数据,并保存图片文本到指定目录文件夹...
  12. 如何将图片制作成画中画特效
  13. JavaScript实现网页轮播图
  14. JAVA中文本字符反写
  15. 什么是WAF?WAF的功能有哪些?
  16. 与英特尔分手后,苹果收获成功
  17. JavaWeb-实现多ip、异地 同时登录踢人下线
  18. 关于手淘xsign算法,最新带 x-mini-wua
  19. mysql 切换主键
  20. 严冬欲御寒增强体质 首当养肾

热门文章

  1. [league/glide]两行代码实现一套强大的图片处理HTTP服务
  2. html5,css3,es6新特性总结
  3. Java ArrayList转int型数组
  4. springboot毕设项目团队项目日程管理系统617qh(java+VUE+Mybatis+Maven+Mysql)
  5. SQL SERVER EXEC 、SP_EXECUTESQL
  6. 如何从Chrome商店下载.crx的插件
  7. 10行代码实现目标检测_10个网站在线测试您的代码
  8. 影视后期制作就业公司怎么选?
  9. MySQL问题让你大厂梦碎?那这本书籍你不妨看看
  10. python学习图解_轻松学Python 3 零基础彩色图解、专业入门