Home  >  Q&A  >  body text

html5 - HTML中a标签的锚点问题

锚点不是直接定位到所需的位置么?为什么加上base标签换个基准URL就会重新加载,是不是点击锚点先重新发送http请求加载页面然后再定位?

伊谢尔伦伊谢尔伦2742 days ago929

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-17 15:08:55

    <base> causes the browser to no longer use the URL of the current document. Instead, use the specified base URL to resolve all relative URLs. This includes URLs within an <img>, <link>, <form> tags. -------W3C

    reply
    0
  • Cancelreply