更新时间:2023-02-06 14:15:59
如果您不想在移动网站时更改每个实例,只需更新< head> 部分,并将其添加
If you don't want to change every instance when you move your site, just update the <head>
section of your html page header and add this
<base href="http://www.example.com/" />
或
<base href="/" />
这将解决该问题,您不必将所有实例都更新为绝对路径。
This will take care of that problem and you don't have to update all instances to absolute paths.