如何以简单的形式修改字体大小
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>
我想制作字体大小为 30px 的 "Remove Note" 标签,但似乎不知道如何以简单的形式更改样式。
使用 span
和 class
并使用 class 设置 font-size
。
<span class="largeFont" ><%= f.label :_destroy, "Remove Note" %></span>
CSS:
.largeFont
{
font-size : 30px;
}
从 div
中删除 class mobile_note_form2
。它导致所有元素都具有 font-size : 30px
<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>
我想制作字体大小为 30px 的 "Remove Note" 标签,但似乎不知道如何以简单的形式更改样式。
使用 span
和 class
并使用 class 设置 font-size
。
<span class="largeFont" ><%= f.label :_destroy, "Remove Note" %></span>
CSS:
.largeFont
{
font-size : 30px;
}
从 div
中删除 class mobile_note_form2
。它导致所有元素都具有 font-size : 30px