gpt4 book ai didi

html - 由于 MIME 类型不匹配,CSS 被忽略

转载 作者:太空宇宙 更新时间:2023-11-04 14:05:51 25 4
gpt4 key购买 nike

我测试过的每个浏览器都忽略了我的网站样式表。我在 IE9 上测试时遇到此错误 - SEC7113:由于 MIME 类型不匹配,CSS 被忽略

这是引用它的 header 中的 html。如果您需要更多信息,请告诉我。

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
<title></title>

<!--The style sheet below is the one being ignored-->
<link rel="stylesheet" type="text/css" charset="UTF-8" href="Styles/Site.css" />

<!-- Skin CSS file -->
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.9.0/build/assets/skins/sam/skin.css" />
<!-- Utility Dependencies -->
<script src="http://yui.yahooapis.com/2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script src="http://yui.yahooapis.com/2.9.0/build/element/element-min.js"></script>
<!-- Needed for Menus, Buttons and Overlays used in the Toolbar -->
<script src="http://yui.yahooapis.com/2.9.0/build/container/container_core-min.js"> </script>
<script src="http://yui.yahooapis.com/2.9.0/build/menu/menu-min.js"></script>
<script src="http://yui.yahooapis.com/2.9.0/build/button/button-min.js"></script>
<!-- Source file for Rich Text Editor-->
<script src="http://yui.yahooapis.com/2.9.0/build/editor/editor-min.js"></script>
<script src="http://yui.yahooapis.com/2.9.0/build/editor/simpleeditor-min.js"></script>


</head>

最佳答案

我想通了,我刚开始工作的公司在设置我的计算机时未能为 IIS 安装静态内容功能。所以它忽略了我所有的样式表、图像和链接。

关于html - 由于 MIME 类型不匹配,CSS 被忽略,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11420710/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com