twitter-bootstrap Bootstrap 在 Firefox 浏览器中不起作用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15868345/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 16:51:33  来源:igfitidea点击:

Bootstrap doesn't work in Firefox browser

firefoxtwitter-bootstrap

提问by user2255578

I have a Bootstrap form made, but it doesn't appear correctly in Firefox... All other browsers seem to work. I've tried everything!

我制作了一个 Bootstrap 表单,但它在 Firefox 中没有正确显示......所有其他浏览器似乎都可以工作。我什么都试过了!

Here's the link: http://www.redmandesign.ie/bootstrap/form1.html

这是链接:http: //www.redmandesign.ie/bootstrap/form1.html

I think it's related to the bootstrap style sheet but I'm not sure.

我认为这与引导程序样式表有关,但我不确定。

Can anyone help, I'm really stuck!!!

谁能帮忙,我真的卡住了!!!

回答by EPB

<link href="css\bootstrap.css" rel="stylesheet">
<link href="css\bootstrap-responsive.css" rel="stylesheet">

Should be changed to:

应改为:

<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">

Explanation: Firefox is sending a request for a file called css\bootstrap.css instead of asking for bootstrap.css in the css folder, which doesn't exist and the server replies with a 404 error. Don't you just love the subtle difference between the types of slashes? :P

说明:Firefox 正在发送对名为 css\bootstrap.css 的文件的请求,而不是在 css 文件夹中请求 bootstrap.css,该文件夹不存在并且服务器回复 404 错误。难道您不喜欢斜线类型之间的细微差别吗?:P

回答by Kiran

In firefox , when you check for this link https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css. It shows this connection is untrusted. Accept it and Procced it from the browser. Now run the bootstrap file, it should work.

在 firefox 中,当您检查此链接时 https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css。它表明此连接不受信任。接受它并从浏览器进行处理。现在运行引导文件,它应该可以工作。