|
|
Posted on 10/19/2014 11:08:31 PM
|
|
|
Today I am writing a web page, I need to use CSS styles, and then I want to reference an external stylesheet
Then use the link tag
Then, there was no effect, and at this time, I tested it locally, and I felt that it was a path problem, whether to use an absolute path
Then, after I changed the path of the CSS stylesheet to an absolute path, the page still had no effect
Finally, I opened a random webpage and referenced the link writing method of other websites, and found that I was missing the rel="stylesheet" attribute
At first, I didn't pay much attention to this attribute, because I didn't know what it was for, but finally, I added this attribute, and the effect of the web page was normal!
- <link rel="stylesheet" type="text/css" href="#" />
Copy code
|
Previous:CSS styles are used in a total of 3 IntroductionsNext:Today, October 19th, the website has been built for about 15 days, and the post has reached 1,000
|