引导程序可以在Chrome上使用,但不能在Firefox上使用? [英] Bootstrap working on chrome but not on firefox?

查看:89
本文介绍了引导程序可以在Chrome上使用,但不能在Firefox上使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在为一个朋友建立一个网站,该网站在chrome上看起来不错,但是当我尝试对其进行firefox测试时,它看起来并不像chrome版本.在调试器中查看firefox,似乎没有从CDN加载引导css.任何提示将不胜感激!这是我的代码中称为引导CDN的部分.

Hello I am building a website for a friend and the site looks good on chrome but when I try to test it for firefox it looks nothing like the chrome version. Looking at the debugger for firefox it seems like the bootstrap css is not loading from the CDN. Any tips would be appreciated! Here is the part of my code that calls the bootstrap CDN.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600' rel='stylesheet' type='text/css'>
  <script src="https://use.typekit.net/edr3ydd.js"></script>
  <script>try{Typekit.load({ async: true });}catch(e){}</script>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" integrity="sha384-aUGj/X2zp5rLCbBxumKTCw2Z50WgIr1vs/PFN4praOTvYXWlVyh2UtNUU0KAUhAX" crossorigin="anonymous">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
  <link rel="stylesheet" type="text/css" href="css\about.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" integrity="sha512-K1qjQ+NcF2TYO/eI3M6v8EiNYZfA95pQumfvcVrTHtwQVDG+aHRqLi/ETn2uB+1JqwYqVG3LIvdm9lj6imS/pQ==" crossorigin="anonymous"></script>
  <title>About</title>
 </head>
<body>

推荐答案

我建议您在为其他人开发网站或应用程序时切勿使用CDN.当您自己将某些内容作为草稿完成时,CDN可以很好地引导布局.

I suggest you to never use CDN when developing websites or applications for other people. CDNs are great to bootstrap the layout when you are doind something by yourself as a draft.

但是,当涉及到第三方分发时,我建议您下载引导程序包,并在HTML页面所在的本地服务器上使用它.

But when it comes to distribution for third people I suggest you to download bootstrap package and use it on the local server where the HTML page is.

这篇关于引导程序可以在Chrome上使用,但不能在Firefox上使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆