Stylesheet not loaded because of MIME-type

Stylesheet not loaded because of MIME-type

引用的路径错误,目标路径没有对应的css文件。因为服务器返回了404错误,是html格式的,匹配不上css

In most cases, this could be simply the CSS file path is wrong. So the web server returns status: 404 with some Not Found content payload of html type.

The browser follows this (wrong) path from <link rel="stylesheet" ...> tag with the intention of applying CSS styles. But the returned content type contradicts so that it logs an error.

 

posted @ 2021-08-20 16:20  ChuckLu  阅读(55)  评论(0编辑  收藏  举报