我目前的项目完全基于ems。
html
<div class="tiny">
This is some tiny text which is tiny.
</div>
<div class="small">
This is some small text which is small.
<div class="tiny">
And this is some tiny text inside small text which should be as tiny as the other tiny one.
</div>
</div>
css
.tiny {
font-size:0.7em;
line-height:1.7;
}
.small {
font-size:0.8em;
line-height:1.3em;
}
在这种情况下,tiny
文本内的small
文本小于普通tiny
文本。
首先,这是为什么呢?其次,我该如何解决这个问题或使其大小相同?
先感谢您!