Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery Google Chrome保存了一些页面的html文件;不能正常显示_Jquery_Html_Css_Google Chrome_Web - Fatal编程技术网

Jquery Google Chrome保存了一些页面的html文件;不能正常显示

Jquery Google Chrome保存了一些页面的html文件;不能正常显示,jquery,html,css,google-chrome,web,Jquery,Html,Css,Google Chrome,Web,我不记得这是否有效,但我在下载一些页面html文件时遇到了一个问题,它们在谷歌浏览器上没有正确显示。但是,如果我在其他浏览器(如Microsoft Edge或Internet Explorer本身)上打开它们,我可以看到该页面而不会出现任何问题 我要和你一起做个例子 进入该页面,您将看到默认情况下的外观 现在这是它下载html后的样子(带文件夹的完整html),然后用Google Chrome打开它 但如果我在Internet Explorer上打开它,它根本不应该是这样的 正如您在Inte

我不记得这是否有效,但我在下载一些页面html文件时遇到了一个问题,它们在谷歌浏览器上没有正确显示。但是,如果我在其他浏览器(如Microsoft Edge或Internet Explorer本身)上打开它们,我可以看到该页面而不会出现任何问题

我要和你一起做个例子

进入该页面,您将看到默认情况下的外观

现在这是它下载html后的样子(带文件夹的完整html),然后用Google Chrome打开它

但如果我在Internet Explorer上打开它,它根本不应该是这样的

正如您在Internet Explorer上看到的,它在Microsoft Edge上看起来很好,可能是一些小东西没有显示出来,但这些都没有问题

错误:

[Deprecation] CSS cannot be loaded from `file:` URLs unless they end in a `.css` file extension.
Valve%20Developer%20Community.html:12 Resource interpreted as Stylesheet but transferred with MIME type text/plain: "file:///C:/Users/user/Downloads/Valve%20Developer%20Community_files/load(1).php".
load.php:1 Uncaught ReferenceError: mw is not defined
    at load.php:1

(anonymous) @ load.php:1
Valve%20Developer%20Community.html:13 Resource interpreted as Stylesheet but transferred with MIME type text/plain: "file:///C:/Users/user/Downloads/Valve%20Developer%20Community_files/screen.less".
load(2).php:17 GET file:///C:/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=valve&version=20141001T014210Z net::ERR_FILE_NOT_FOUND

(anonymous) @ load(2).php:17
load(3).php:154 GET file:///C:/w/load.php?debug=false&lang=en&modules=jquery.client%2Ccookie%2CmwExtension%2Cthrottle-debounce%7Cmediawiki.legacy.ajax%2Cwikibits%7Cmediawiki.notify%2Ctoc%2Cutil%7Cmediawiki.page.startup%7Cskins.vector.js&skin=valve&version=20171215T202648Z&* net::ERR_FILE_NOT_FOUND
addScript @ load(3).php:154
doRequest @ load(3).php:158
work @ load(3).php:160
request @ load(3).php:157
load @ load(3).php:164

(anonymous) @ Valve Developer Community.html:34
Valve Developer Community.html:255 GET file:///C:/w/skins/common/images/wiki.png net::ERR_FILE_NOT_FOUND

load(3).php:154 GET file:///C:/w/load.php?debug=false&lang=en&modules=jquery.checkboxShiftClick%2Chidpi%2ChighlightText%2CmakeCollapsible%2Cmw-jump%2Cplaceholder%2Csuggestions%7Cmediawiki.action.view.postEdit%7Cmediawiki.api%2Ccldr%2Chidpi%2CjqueryMsg%2Clanguage%2CsearchSuggest%2Cuser%7Cmediawiki.language.data%2Cinit%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%7Cskins.vector.collapsibleNav&skin=valve&version=20171215T202648Z&* net::ERR_FILE_NOT_FOUND
addScript @ load(3).php:154
doRequest @ load(3).php:158
work @ load(3).php:160
request @ load(3).php:157
load @ load(3).php:164

(anonymous) @ Valve Developer Community.html:259
Valve Developer Community.html:1 Failed to load https://developer.valvesoftware.com/w/index.php?action=ajax: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not 
但是为什么谷歌Chrome不能正确地显示它呢?在Icognito模式下,它也不能正确地显示,这不是因为它看起来是一个设置,你可以尝试复制它自己看


我希望你能帮助我。

这看起来很清楚,并且肯定会解释屏幕截图中显示的行为:

CSS不能从
文件:
URL加载,除非它们以
.CSS
文件扩展名结尾


检查浏览器的开发人员控制台是否有错误。我敢打赌,非HTTPS页面上的HTTPS资产或类似的东西肯定有问题。添加了我在控制台中发现的错误,但没有说明是哪个文件,我只有一个文件以.css结尾,我仍然不知道Internet Explorer如何做到这一点。IE和Chrome经常为类似的内容提供不同的URL。在源代码中查找引用非
.css
css文件的任何
标记。那么您的意思是像开发工具中的标签源代码一样?