How do I link to part of a page? (hash?)

后端 未结 7 1340
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 07:14
相关标签:
7条回答
  • 2020-11-22 07:52

    On 12 March 2020, a draft has been added by WICG for Text Fragments, and now you can link to text on a page as if you were searching for it by adding the following to the hash

    #:~:text=<Text To Link to>

    Working example on Chrome Version 81.0.4044.138:

    Click on this link Should reload the page and highlight the link's text

    0 讨论(0)
提交回复
热议问题