ruby - rails 控制器动作生成的视图,怎么得到stylesheet里面CSS文件的样式?
怪我咯
怪我咯 2017-04-25 09:02:40
0
2
785

学习了快一个周了,都没有明白,求解释解释?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
世界只因有你

app/views/layouts/application.html.erb
There is such a paragraph in this document

<%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>

css is quoted here

PHPzhong
   app/assets/stylesheets/application.css

Use the following method to reference css in this file

  *= require nprogress/nprogress.css

Use the statement mentioned above to reference the application to reference the css to the page

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template