CSS中,width、 line-height和行框的问题有几个疑问:1、比如这么一段内容This is text,some of whick hs ,plus other textthat is strong strongly emphasized and that islarger than the surrounding text.三行的line-height都是12px,但
CSS中,width、 line-height和行框的问题有几个疑问:1、比如这么一段内容This is text,some of whick hs ,plus other textthat is strong strongly emphasized and that islarger than the surrounding text.三行的line-height都是12px,但
CSS中,width、 line-height和行框的问题
有几个疑问:
1、比如这么一段内容
This is text,some of whick hs ,plus other text
that is strong strongly emphasized and that is
larger than the surrounding text.
三行的line-height都是12px,但是我发现第二行跟第一行基线之间的距离是远大于line-height的,怎么回事呢?
2、另外就是关于行框的高,它好像是由行里最高的行框确定的,这个行框都跟哪几个属性有关?有时候line-height大于font-size的时候,是由line-height决定的;若line-height小于font-size,就变成由后者决定的?
CSS中,width、 line-height和行框的问题有几个疑问:1、比如这么一段内容This is text,some of whick hs ,plus other textthat is strong strongly emphasized and that islarger than the surrounding text.三行的line-height都是12px,但
对你无语了,
font_size这个属性是定义字体大小.默认line_height为最小值,也就是font-size的值,应为字体就这么高了,行高不会在比这个还小!
同理,你第二行把strong的font-size设置成24px,肯定比line-height:12px大,所以只能按照font-size来显示!
还有你指的行框是个什么东西?没搞明白.