Home >Development Tools >dreamweaver >Why does Dreamweaver say that the css file is not on the local disk?

Why does Dreamweaver say that the css file is not on the local disk?

藏色散人
藏色散人Original
2021-01-04 10:27:307742browse

Dreamweaver says that the css file is not on the local disk because the css file path is incorrectly filled in or the link tag is written incorrectly. The solution: first check the source code; then check the error message that the css does not exist; then check the link Just tag it.

Why does Dreamweaver say that the css file is not on the local disk?

The operating environment of this tutorial: Dell G3 computer, Windows 7 system, dreamweaverCC 2020 version.

Recommended: "css Video Tutorial"

Sometimes when we use Dreamweaver to create a web page and use the link tag to introduce a css file, we will receive an error saying that so-and-so The css file 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 Why does Dreamweaver say that the css file is not on the local disk?. 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