Solution to the problem that css is not displayed on the local disk: 1. Use a browser to access the specified page and view the source code, then click to enter the css to see if it exists; 2. Visit the page and press f12 to view the control Check whether there is an error message indicating that the css does not exist; 3. Check the link tag.
The operating environment of this tutorial: Windows7 system, Chrome76.0&&CSS3 version. This method is suitable for all brands of computers.
Recommendation: "css Video Tutorial"
css always shows that it is not on the local disk?
There are two reasons for the error:
The css file path is incorrectly filled in
link tag The solutions and steps for writing errors
are as follows:
1. Use a browser to access the page, view the source code, click to enter the css, and check whether it exists
2. Visit the page and press f12 to see if there is an error message in the console that the css does not exist
3. Check the link tag, whether the double quotes are closed, and check whether the path of the css is relative to this document Fill in
4. If it really cannot be solved, we copy the css file to a directory at the same level as the HTML document, and directly fill in the css file name in the css path in the link for testing.
The above is the detailed content of How to solve the problem that css is not displayed on the local disk. For more information, please follow other related articles on the PHP Chinese website!