[英]How to modify font-size in simple form
<style>
.mobile_note_form2 {
font-size: 30px;
}
</style>
<div class="mobile_note_form2">
<fieldset>
<%= f.date_select :created_at %><br/><br/>
<%= f.text_area :note %><br/>
<%= f.check_box :_destroy %>
<%= f.label :_destroy, "Remove Note" %>
</fieldset>
</div>
I want to make the "Remove Note" label with a font-size of 30px, but can't seem to figure out how to change styles in simple form. 我想使用30px的字体大小来制作“删除注释”标签,但似乎无法弄清楚如何以简单的形式更改样式。
use span
with a class
and use that class to set the font-size
. 对一个class
使用span
并使用该类设置font-size
。
<span class="largeFont" ><%= f.label :_destroy, "Remove Note" %></span>
CSS: CSS:
.largeFont
{
font-size : 30px;
}
Remove class mobile_note_form2
from the div
. 从div
删除class mobile_note_form2
。 It is causing all the elements to have font-size : 30px
这导致所有元素的font-size : 30px
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.