2014-07-27 3 views
0

전체 클래스 영역 (class = "test_detail")에서 배경색을 변경하고 싶지만 텍스트 뒤의 색상 만 변경하고 싶습니다. 클래스의 전체 영역에 배경색을 적용하는 방법

나는 레일 4

index.html.erb에게

. 
. 
. 
<% @calendar.each do |c| %> 
. 
. 
. 
<aside class="span7"> 
    <span class="test_detail"> 
     <% if c.day? %> 
     <%= c.day %> 
     <% else %> 
     xxx 
     <% end %> 
     <br> 
     xxx <%= link_to "xxx", 'http://xxx' %> 
    </span> 
</aside> 
. 
. 
. 
<% end %> 

custom.css.scss

.test_detail { 
    font-size: 12px; 
    color: gray; 
    background-color: orange; 
} 

font-sizecolor 작업을 사용하지만, 작동하지 않을 background-color 보인다.

+0

예는 의견, invalidfunction 주셔서 감사합니다 –

답변

관련 문제