我想知道是否有一种简单的常见方法来包含一个css文件,这是在一个文件夹中,从另一个文件夹内的html/php文件?
结构如下:
- index . php
- 关于
- index . php
- css
- style.css
我想知道如何从index.php中获得css文件夹中style.css文件的正确路径。
这是about/index.php
?
<link rel="stylesheet" href="../css/style.css" />
..
基本上表示,"从这个脚本所在的位置向上一层。"