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,但

来源:学生作业帮助网 编辑:作业帮 时间:2024/10/04 19:01:05
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,但
xT]O`+Ub?6muWe|L#Q.L mB=o˕am kd%y9ss6 \X 5&TK0- Ҳ§[zƩ|ѹNYخ~P>MwxDz;Ԩ2i0zDI *$V.ĭқp|2p UR^*FU<~78a%)FrţeV(Fe8e5J1 K 1n|o  %8F\x1i63 3~t8A1#)A;;r!Ƚ=q.Xи$V>qjyO<* hBŐ߫`lAӆ.F9Z0hԺF-†aTd+ODA?@; k{QSx9^3<yWKOj#$:k#vknX޻d.2Jա? eL}\=3`>1-@w;+VHz<'#Tj#b)fpfH1s;6Oqhw~'pf5oBJГ&c#h&[n{#k ns_xJsdτfdT3R

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来显示!
还有你指的行框是个什么东西?没搞明白.