How to link to specific line of text in page, using only URL?

前端 未结 4 1800
庸人自扰
庸人自扰 2020-12-10 06:42

I am curious if there is a way to use only a URL to send someone to a specific line at a given page. Citebite does this, however it links to a cached page instead of the act

4条回答
  •  一个人的身影
    2020-12-10 07:19

    There is an experimental feature in Chrome 74 called Scroll To Text Fragment which allows you to specify phrases to be highlighted in a URL. We may have to wait a while before this becomes finalised and supported in browsers by default.

    Meanwhile, if the article to which you want to link also has a PDF version, you could use a URL like https://example.org/file.pdf#page=2&search=findme to highlight findme on page 2.

提交回复
热议问题