[英]Windows 10 IIS does not load stylesheets
There are many post on web with regards to this problem, but none of them are working in my case. 关于此问题,网络上有很多帖子,但是在我看来,这些帖子都不起作用。 Recently I had to re-install IIS due to the problem caused by windows update.
最近,由于Windows更新引起的问题,我不得不重新安装IIS。 Javascript files and images are working fine, but stylesheets give me 404 error.
Javascript文件和图像工作正常,但是样式表给我404错误。 When I open the stylesheet itself in browser I can see only blank page.
当我在浏览器中打开样式表本身时,我只能看到空白页。
Here is what I have checked: 这是我检查过的内容:
.css
MIME Type is set .css
MIME类型 web.config
web.config
删除了staticContent部分 Note that I am trying to sort this problem on localhost, not the server. 请注意,我正在尝试在本地主机而不是服务器上解决此问题。
Any hints appreciated. 任何提示表示赞赏。
okay as it is really unclear about why iis does not load style sheets. 好的,因为iis为何不加载样式表尚不清楚。 I would recommend you to install fiddler (a web debugging tool ) and do a debug to see if your css file actually gets requested or not or are you receiving a 404 error .
我建议您安装fiddler(一个Web调试工具)并进行调试,以查看您的css文件是否真正被请求或是否收到404错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.