gpt4 book ai didi

javascript - Chrome 和 Firefox 未加载 bootstrap.min.css

转载 作者:太空宇宙 更新时间:2023-11-04 12:09:11 24 4
gpt4 key购买 nike

我正在尝试使用 Bootstrap 自定义我页面上几个按钮的外观,我包含了如下 JS 和 CSS:

link(href='/stylesheets/style.css', rel='stylesheet')
link(href='/stylesheets/jquery.dataTables.css', rel='stylesheet')
link(href='//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css', rel='stylesheet')
script(src='https://code.jquery.com/jquery-2.1.3.js')
script(src='https://code.jquery.com/ui/1.11.2/jquery-ui.js')
script(src='/javascripts/jquery.dataTables.min.js')
script(src='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js')
link(href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', ref='stylesheet')
script(src='/javascripts/typeahead.bundle.js')
script(src='/javascripts/handlebars-v2.0.0.js')
script(src='/front_JS/searchFrontEnd.js')

我注意到根本没有加载 bootstrap.min.css;通过使用 Firebug,我看到了以下内容(除了 bootstrap.min.css 之外没有“+”图标):

bootstrap.min.css not expandable in Firebug

Chrome 和 Firefox 我都试过了,问题是一样的。

我的问题:

  1. 我是否需要包含一些其他 CSS 或 JavaScript 才能包含 bootstrap.min.css?

  2. 我可以使用 Firebug 来解决此类问题吗? IE。 Firebug 会告诉我这里缺少什么吗?

最佳答案

可能拼错了 Rel 属性:

link(href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', ref='stylesheet')

rel替换ref

link(href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', rel='stylesheet')

也许……

关于javascript - Chrome 和 Firefox 未加载 bootstrap.min.css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29162798/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com