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

前端 未结 4 1794
庸人自扰
庸人自扰 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:41

    You must give an ID to your element. Example:

    . If you go to mypage.html#footer, the browser will get you there.

    If it's not your webpage, look in the code, you may find an ID element next to the text you want.

提交回复
热议问题