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

后端 未结 7 1329
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 07:14
7条回答
  •  既然无缘
    2020-11-22 07:39

    Provided that any element has the id attribute on a webpage. One could simply link/jump to the element that is referenced by the tag.

    Within the same page:

    .....
    ...... Jump to markOne

    Other page:

    Jumps to the markOne element in the mypage of the linked website

    The targets don't necessarily have an anchor element.

    You can go check this fiddle out.

提交回复
热议问题