我的字体很小,但我的突出显示尺寸很大?
My font size is small, but my highlight size is huge?
当我更改某些文本的字体大小时,突出显示的大小没有改变,这导致了前面几行之间的差距。
日期突出显示大小导致日期和标题之间存在差距
<font size = "3"><small>{{blog.pub_date}}</small></font>
您可能有一个 CSS 规则控制 <small>
标签。虽然 <small>
将从父 <font>
标签继承其 font-size
,但如果存在这样的规则,它将优先:
small {
font-size: 40px;
}
<font size="3">
<small>{{blog.pub_date}}</small>
</font>
此外,请注意 <font>
tag is obsolete in itself -- you should the use CSS font-size
property,如上面的代码片段所示。
Remove small tag should solve your probelm :
<font size = "10">{{blog.pub_date}}</font>
当我更改某些文本的字体大小时,突出显示的大小没有改变,这导致了前面几行之间的差距。
日期突出显示大小导致日期和标题之间存在差距
<font size = "3"><small>{{blog.pub_date}}</small></font>
您可能有一个 CSS 规则控制 <small>
标签。虽然 <small>
将从父 <font>
标签继承其 font-size
,但如果存在这样的规则,它将优先:
small {
font-size: 40px;
}
<font size="3">
<small>{{blog.pub_date}}</small>
</font>
此外,请注意 <font>
tag is obsolete in itself -- you should the use CSS font-size
property,如上面的代码片段所示。
Remove small tag should solve your probelm :
<font size = "10">{{blog.pub_date}}</font>