我有一个index.html具有以下文件结构的文件:fl/contact/thanks/index.html
我的 CSS 文件夹具有以下文件结构:fl/css/style.css
我如何定位该style.css文件,以便它影响index.html具有当前文件结构的文件?
目前的设置是这样的:
<link rel="stylesheet" type="text/css" href="css/style.css">
如果你在服务器上,你可以这样做:
<link rel="stylesheet" type="text/css" href="/css/style.css">
这假设“fl”是根。