通过nginx部署后,页面css无法正常加载显示,F12控制台显示Resource interpreted as stylesheet but transferred with MIME type text/html

原因是nginx配置文件nginx.conf中缺少mime.types的引入,或者mime.types中没有对css文件的正确类型定义。

以下为正确配置。

 

 

posted @ 2020-05-19 14:41  liehuofeihu  阅读(690)  评论(0)    收藏  举报