嗨,在html.erb文件中使用stylesheet_link_tag时,我一直收到无效的CSS错误
我不能完全解决这个问题..这是代码
faq.html.erb代码段
<% content_for :head do %>
<%= stylesheet_link_tag "home/faq", 'data-turbolinks-track': 'reload' %>
<% end %>
控制台错误:
ActionView::Template::Error (Invalid CSS after "...reen-image.png)": expected "{", was ";"):
1: <% content_for :head do %>
2: <%= stylesheet_link_tag "home/faq", 'data-turbolinks-track': 'reload' %>
3: <% end %>
4:
5: <!-- about-faq-header -->
明显无效的CSS代码:
.first-ft-hero {
background: url(../images/phone-screen-image.png); // this specific line is throwing the error
background-position: 80%;
background-repeat: no-repeat;
background-size: cover;
min-height: 600px;
}