如何在Chrome中直接链接到网页上的文本

A close-up of the Google Chrome's logo over a blue background.

Chrome now lets you create links directly to text on a web page. Chrome’s “scroll to text fragment” feature is a bit complicated to use, but Googler Paul Kinlan made an easy-to-use bookmarklet that lets you take easy advantage of it.

Chrome现在可让您直接创建指向网页上文本的链接。 Chrome的“滚动到文本片段”功能使用起来有点复杂,但是Googler Paul Kinlan制作了一个易于使用的书签,可让您轻松利用它。

If you’re not familiar with Scroll to Text Fragment, it’s a feature that only works in Google Chrome as of June 2020. It lets you create a special link that tells Google Chrome to scroll to and highlight a specific section of text on a web page. Google is now using this in Google search results, so you’ll occasionally be scrolled directly to specific text on a web page after clicking a search result. You can also take advantage of this feature yourself when sharing a link with friends, family, or coworkers.

如果您不熟悉“滚动到文本片段”,则此功能仅适用于2020年6月的Google Chrome。它可让您创建一个特殊链接,告诉Google Chrome浏览器滚动并突出显示网络上的特定文本部分页。 Google现在在Google搜索结果中使用了此功能,因此有时您会在单击搜索结果后直接滚动到网页上的特定文本。 与朋友,家人或同事共享链接时,也可以自己使用此功能。

To get this bookmarklet, head to Paul Kinlan’s Scroll to text bookmarklet page. Drag and drop the “Find in page” bookmarklet link to Chrome’s bookmark toolbar. (If you don’t see the toolbar, you can press Ctrl+Shift+B to open it.)

要获得此书签 ,请转到Paul Kinlan的“ 滚动到文本书签”页面 。 将“查找页面”书签链接拖放到Chrome的书签工具栏。 (如果看不到工具栏,则可以按Ctrl + Shift + B来打开它。)

Update: Google now offers an official Link to Text Fragment browser extension you can use instead.

更新 :Google现在提供了一个官方的“ 文本片段链接”浏览器扩展程序,您可以代替使用。

Adding the Find in page bookmarklet to Chrome's bookmarks toolbar

To use the bookmarklet, go to any web page, select some text with your mouse, and then click the bookmarklet on your toolbar.

要使用小书签,请转到任何网页,用鼠标选择一些文本,然后单击工具栏上的小书签。

Clicking the Find in Page bookmarklet

The address in the toolbar will now have the “scroll to text fragment” information in the URL.

工具栏上的地址现在将在URL中具有“滚动到文本片段”信息。

You can copy this link and share it with anyone. As long as that person opens the link in Chrome, they’ll be scrolled directly to your selected on the web page.

您可以复制此链接并与任何人共享。 只要该人在Chrome中打开该链接,他们就会直接滚动到您在网页上选择的链接。

The "scroll to text fragment" markup in an URL in Chrome

翻译自: https://www.howtogeek.com/677110/how-to-directly-link-to-text-within-a-web-page-in-chrome/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值