正如维基百科所说,Text figures有时会让文本更具可读性.正常大小的数字通常比文本的其他部分突出得多.尤其是在使用小写字母的文本中,大写数字不太适合.如何使用css在文本中使用较小的数字?
下面是我想要更小数字的一个例子:
.smallcaps {
font-variant: small-caps;
}
<p class="smallcaps">Example smallcaps 1337 text.</p>
<p>Another text with 42 numbers in it.</p>