The right way of setting when it's a local file

前端 未结 6 1805
我在风中等你
我在风中等你 2020-12-01 12:37

I\'m trying to link to a local file. I\'ve set href as follows:

Link Anchor
6条回答
  •  眼角桃花
    2020-12-01 12:58

    Organize your files in hierarchical directories and then just use relative paths.

    Demo:

    HTML (index.html)

    link
    

    Directory structure:

    base/
    base/index.html
    base/inner/file.html
    ....
    

提交回复
热议问题