Specify a Root Path of your HTML directory for script links?

前端 未结 7 890
我在风中等你
我在风中等你 2020-12-23 03:11

I\'m writing a template for dreamweaver, and don\'t want to change the scripts for subfolder pages.

Is there a way to make the path relative to the root directory?

7条回答
  •  眼角桃花
    2020-12-23 03:45

    Just start it with a slash? This means root. As long as you're testing on a web server (e.g. localhost) and not a file system (e.g. C:) then that should be all you need to do.

提交回复
热议问题