Recently learning PHP, to the third chapter of the time stuck. I quoted an HTML template, but this template cannot reference a CSS file, which is the HTML template:
<?php echo $page_title; ?>
Your Website
catchy slogan...
- Home Page
- Calculator
- link three
- link four
- link five
However, I passed in the table header in the
Yes, it can work:
My project file structure:
Reply content:
Recently learning PHP, to the third chapter of the time stuck. I quoted an HTML template, but this template cannot reference a CSS file, which is the HTML template:
<?php echo $page_title; ?>
Your Website
catchy slogan...
- Home Page
- Calculator
- link three
- link four
- link five
However, I passed in the table header in the
Yes, it can work:
My project file structure:
Relative path is wrong. Try changing the path to your PHP reference and move the link down.
CSS that you see is not the path problem
Relative path
I think your template is two points, that is, the top level directory
The style tag is a dot
By the way, it is still not possible to refer to this path by link ./includes/style.css .
Why use PHP to reference CSS files? It's not scientific.
CSS references are all used
This form of = =, you kind of is the PHP include file, CSS does not have that kind of
The problem of the path, you are in header.html inside the introduction of CSS problems?
It's supposed to be./style.css
Or is it. /includes/style.css this.
Use the absolute path test can be effective and then change to a relative