Jquery Google Drive 上托管的站点上的移动界面
Jquery Mobile interface on a site hosted on Google Drive
我已经将我的网站上传到 Google 驱动器进行托管,但是当我访问它时,页面看起来不像在本地那样。它就像 JQuery 移动界面的 none 正在使用它。
有谁知道为什么这是 happening/a 补救方法?谢谢
如果需要,我已经包含了我的 header 以供参考
<title>Website</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="128_icon.png"/>
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script src="DoDjavascript.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<link href="DoDCSS.css" rel="stylesheet" type="text/css"/>
</head>
Google 驱动器托管不允许加载 HTTPS 之外的内容,它会给出如下错误:
Mixed Content: The page at 'https://foo/bar' was loaded over HTTPS, but requested an insecure stylesheet 'http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css'. This request has been blocked; the content must be served over HTTPS.
您可以在 CDN 链接中使用 https
协议来解决这个问题。
我已经将我的网站上传到 Google 驱动器进行托管,但是当我访问它时,页面看起来不像在本地那样。它就像 JQuery 移动界面的 none 正在使用它。
有谁知道为什么这是 happening/a 补救方法?谢谢
如果需要,我已经包含了我的 header 以供参考
<title>Website</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="128_icon.png"/>
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script src="DoDjavascript.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<link href="DoDCSS.css" rel="stylesheet" type="text/css"/>
</head>
Google 驱动器托管不允许加载 HTTPS 之外的内容,它会给出如下错误:
Mixed Content: The page at 'https://foo/bar' was loaded over HTTPS, but requested an insecure stylesheet 'http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css'. This request has been blocked; the content must be served over HTTPS.
您可以在 CDN 链接中使用 https
协议来解决这个问题。