<!-- THE FIRST SLIDE-->
<li>
<!-- FIRST SLIDE OVERLAY -->
<div class="slider_overlay"></div>
<!-- FIRST SLIDE MAIN IMAGE -->
<img src="assets/doroga1.jpg" />
<!-- FIRST SLIDE CAPTION-->
<div class="slider_caption">
<h2>Пассажирские перевозки <br>Донбасс - Крым </h2>
<p>Ежедневно в обе стороны</p>
</div>
</li>
这是我的style.css.scss
.slider_area{
float: left;
display: inline;
width: 100%;
position: relative;
}
.slider_overlay {
background: none repeat scroll 0 0 #242434;
height: 100%;
opacity: 0.8;
position: absolute;
right: 0;
top: 0;
width: 100%;
z-index: 9;
}
答案 0 :(得分:0)
运行
RAILS_ENV=production bundle exec rake assets:precompile
在您的服务器应用目录
上连同此套装
config.serve_static_assets = true
在您的环境/ production.rb
中