2016-08-03 10 views
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"; 

すべてのヘルプははるかに高く評価されています!

ありがとう、

+0

application.html.erbの '// =あなたが'すぎapplication.jsにブートストラップ・sprockets'が必要? ' – mrvncaragay

+0

なし、代わりに私が追加' // = bootstrap'が必要です – ggcodes

+0

'application.js'に' require = bootstrap-sprockets'だけ必要です – mrvncaragay

答えて

0

私は以前同じ問題を抱えていました。私はこれらの2行を追加することによってそれを解決し、あなたが追加しましたhead

<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
関連する問題