親の外側と同じようにdiv、親の内側のフォントサイズを指定しようとしています..divdivdiv
私は持っている
html
<div id='parent' >
<div class='testclass'><b>title</b><br> contents here</div>
</div>
<div class='testclass'><b>title2</b><br> contents here</div>
<div class='testclass'><b>title3</b><br> contents here</div>
<div class='testclass'><b>title4</b><br> contents here</div>
私のCSS
parent{
font-size:.8em;font-weight:bold;
}
.testclass{
font-size:1.1em
}
親のdiv外側はdiv正しいフォント サイズ ( 1.1em) ですが、親の内側のフォント サイズdivは外側よりも小さくなっていdivます。ただし、で em の代わりに 15px を指定すると、testclass. すべて正常に動作します。これを解決する方法はありますか?どうもありがとう。