2016-08-03 3 views
3

이유가 무엇입니까 navbar responsiveness이 레일에서 작동하지 않습니다 . 나는 bootstrap-sass 보석을 사용하고 있습니다. 나는 인터넷에서 이미 검색을했고 가능한 해결책을 찾으려고했지만 아직 운이 없다.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

아니, 대신에 내가 추가 한'// = 부트 스트랩이 필요합니다' – ggcodes

+0

'application.js'에'require = bootstrap-sprockets' 만 필요합니다. – mrvncaragay

답변

0

이전에 같은 문제가있었습니다. 나는이 두 줄을 추가하여 해결되는 추가 않았다 head

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