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

后端 未结 7 1501
伪装坚强ぢ
伪装坚强ぢ 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=

    Working example on Chrome Version 81.0.4044.138:

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

提交回复
热议问题