3
なぜそれですかnavbar responsivenessはRailsで作業しませんです。私はbootstrap-sass
gemを使用しています。私はすでにインターネットで検索し、可能な解決策を試しましたが、私は運が得られません。ここでrails5-bootstrap-sass navbar応答が機能しない
は私の/app/assets/stylesheets/application.css.scss
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*
*
*/
@import "bootstrap-sprockets";
@import "bootstrap";
すべてのヘルプははるかに高く評価されています!
ありがとう、
application.html.erb
の '// =あなたが'すぎapplication.jsにブートストラップ・sprockets'が必要? ' – mrvncaragayなし、代わりに私が追加' // = bootstrap'が必要です – ggcodes
'application.js'に' require = bootstrap-sprockets'だけ必要です – mrvncaragay