bootstrap.min.css Chrome 和 Firefox 未加载
bootstrap.min.css not loaded by Chrome and Firefox
我正在尝试使用 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 之外没有“+”图标):
我都试过了,Chrome 和 Firefox,问题是一样的。
我的问题:
是否需要包含其他一些 CSS 或 JavaScript 才能包含 bootstrap.min.css?
我可以使用Firebug来解决这样的问题吗? IE。 Firebug 能告诉我这里缺少什么吗?
可能拼错了 Rel 属性:
link(href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', ref='stylesheet')
将ref
替换为rel
link(href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', rel='stylesheet')
也许……
我正在尝试使用 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 之外没有“+”图标):
我都试过了,Chrome 和 Firefox,问题是一样的。
我的问题:
是否需要包含其他一些 CSS 或 JavaScript 才能包含 bootstrap.min.css?
我可以使用Firebug来解决这样的问题吗? IE。 Firebug 能告诉我这里缺少什么吗?
可能拼错了 Rel 属性:
link(href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', ref='stylesheet')
将ref
替换为rel
link(href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', rel='stylesheet')
也许……