1. Import the basic style of external CSS filesUse the <link> tag to introduce an external style sheet, which usually has two attributes:
<link href="style.css" rel="stylesheet" /> 2. Basic rules of the path
3. Examples of common path writing1. index.html and style.css files are in the same folder <link href="style.css" rel="stylesheet" /> 2. The css file is in the same folder as the html file <link href="c/style.css" rel="stylesheet" /> 3. The parent folder of html and the parent folder of css files are in the same folder As shown in the figure: there are folders b and b2 under folder a, style.css is in folder c under folder b, and index.html is in folder b2.
<link href="../b/c/style.css" rel="stylesheet" /> This concludes this article on how to write paths when HTML files import external CSS files. For more information about how to import external CSS paths from HTML, please search previous articles on 123WORDPRESS.COM or continue to browse the related articles below. We hope that everyone will support 123WORDPRESS.COM in the future! |
<<: CSS3 achieves infinite scrolling/carousel effect of list
>>: CSS pseudo-element::marker detailed explanation
Golden Rules of Performance: Only 10% to 20% of e...
Table of contents 1. Initialization structure 2. ...
1: Throughput (Requests per second) A quantitativ...
1. What is MySQL master-slave synchronization? Wh...
Flexible layout (Flexbox) is becoming increasingl...
Add monitoring host Host 192.168.179.104 is added...
Preface Linux's file permission management is...
First of all, we know that this effect should be ...
** Detailed graphic instructions for installing y...
Writing a Dockerfile Configure yum source cd /tmp...
Preface Vue provides a wealth of built-in directi...
HTML validate refers to HTML validation. It is the...
Table of contents 1. Basic Concepts ACID 3.AutoCo...
The previous article introduced how Vue can reali...
The first method: Use Junge's one-click scrip...