Method 2: Method 2:

Home  >  Article  >  Web Front-end  >  Two ways for HTML to load external css files

Two ways for HTML to load external css files

巴扎黑
巴扎黑Original
2017-04-01 15:16:172078browse

Two methods for HTML to load external css files      
Method 1:


Method 2:
rel="stylesheet" type="text/css" href="../test.css">
rel="stylesheet " it's necessary.
href="../css/test.css" In, ../ and / both refer to the root directory of the site. /css refers to the css folder in the root directory of the site.

The above is the detailed content of Two ways for HTML to load external css files. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn