当前位置:  开发笔记 > 前端 > 正文

为什么bootstrap在我的github网页上不起作用?

如何解决《为什么bootstrap在我的github网页上不起作用?》经验,为你挑选了1个好方法。

我创建了一个网页,并将其链接到cnd bootstrap扩展,但是当我启动网页时,我的布局看起来很简单并且展开了.这是该网站的链接

kellito14.github.io

这是下面的代码:




  Home
  
  
  
  
 
 
  
  

sahil.. 5

这是您收到的错误消息,

(index):7 Mixed Content: The page at 'https://kellito14.github.io/' was loaded over HTTPS, but requested an insecure stylesheet 'http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'. This request has been blocked; the content must be served over HTTPS.
(index):1 Mixed Content: The page at 'https://kellito14.github.io/' was loaded over HTTPS, but requested an insecure script 'http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js'. This request has been blocked; the content must be served over HTTPS.

所以问题是混合内容,解决这个问题的一种方法是改变指向https的链接,



或者如果你不确定http/https,那就这样:



浏览器将自动决定是通过http还是https加载它.



1> sahil..:

这是您收到的错误消息,

(index):7 Mixed Content: The page at 'https://kellito14.github.io/' was loaded over HTTPS, but requested an insecure stylesheet 'http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'. This request has been blocked; the content must be served over HTTPS.
(index):1 Mixed Content: The page at 'https://kellito14.github.io/' was loaded over HTTPS, but requested an insecure script 'http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js'. This request has been blocked; the content must be served over HTTPS.

所以问题是混合内容,解决这个问题的一种方法是改变指向https的链接,



或者如果你不确定http/https,那就这样:



浏览器将自动决定是通过http还是https加载它.

推荐阅读
ifx0448363
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有