2016-08-05 5 views
0

私はPlease Specifyに異なるスタイルを入れたいコード翡翠で2つの異なるクラスの1行?

td(class="fieldText") Others Please Specify 

を次のようしています。

私は1行でどのようにすることができますか?

答えて

0

あなたはそれを行うために<span>要素を使用することができます。

.fieldText { 
 
    font-size:10px 
 
} 
 

 
.otherText { 
 
    font-size:50px 
 
}
<!-- 
 

 
Jade/pug: 
 

 
td(class="fieldText") Others 
 
    span(class="otherText") Please Specify 
 

 

 
which outputs as: 
 
--> 
 

 
<td class="fieldText">Others <span class="otherText">Please Specify</span></td>

+0

うん、私は...それを私が見 – Rendy

+0

@Rendyをそのようにやった:PIは、それが事実であったかもしれないと思ったが、答えとにかく答えがなかったので。 –