将确切空间设置在基线以下 [英] Setting exact space below baseline
问题描述
您好。是否可以指定两条线之间的确切间距,
从顶线基线到
秒线的上升线测量?
我尝试使用padding-bottom添加空格,但是它将它添加到
下行程序之下。所以行之间的实际空间比我指定的要大。
雅各布
在文章< ja*************************@news03.east.earthlink .net>,
Jacob Weber< ja * **@jacobweber.com>写道:
你好。是否可以指定两条线之间的确切间距,
从顶线的基线到第二条线的上升线测量?
我尝试添加空间padding-bottom,但它将它添加到
下降器下方。所以线之间的实际空间比我指定的要大。
Jacob
我应该补充一点,我可以让它与line-height一起工作,但那样会
要求我提前知道字体大小。
雅各布
Jacob Weber写道
< ja ************************* @ news03.east.earthlink .net>
< blockquote class =post_quotes>在文章< ja ************************* @ news03.east.earthlink .net> ;,
Jacob Weber< ja *** @ jacobweber.com>写道:
你好。是否可以指定两条线之间的确切间距,
从顶线的基线到第二条线的上升线测量?
我尝试添加空间padding-bottom,但它将它添加到下方。因此,线条之间的实际空间大于我指定的。
雅各布
我应该补充一点,我可以使它与行高一致但是那个
需要我提前知道字体大小。
猜测,你在px中设置字体 - 你能不能如果你用%或em设置字体/行高,你可以按照你想要的方式获得行高吗?
-
PeterMcC
如果您认为上述任何一项不正确,
不合适或以任何方式冒犯,
请忽略它并接受我的道歉。
Jacob Weber< ja *** @ jacobweber.com>写道:在文章< ja ************************* @ news03.east.earthlink .net>中,
Jacob Weber< ja *** @ jacobweber.com>写道:
你好。是否可以指定两条线之间的确切间距,
从顶线的基线到第二条线的上升线测量?
我尝试添加空间padding-bottom,但它将它添加到
下降器下方。所以线之间的实际空间比我指定的要大。
我应该补充一点,我可以使用line-height工作,但那会让我知道字体大小提前。
为什么?
行高:1.2;将行高设置为字体大小的1.2倍,
并不重要字体大小。
如果这不是''那么我认为你没有给我们所有的细节
你的特殊情况。
史蒂夫
-
我的理论给你起见,我的异端邪说你,
我从不回信,你不喜欢我的领带。 - 医生
Steve Pugh< st *** @ pugh.net> < http://steve.pugh.net/>
Hello. Is it possible to specify the exact space between two lines,
measured from the baseline of the top line to the ascenders of the
second line?
I tried adding the space with padding-bottom, but it adds it below the
descenders. So the actual space between lines is larger than I specified.
Jacob
In article <ja*************************@news03.east.earthlink .net>,
Jacob Weber <ja***@jacobweber.com> wrote:
Hello. Is it possible to specify the exact space between two lines,
measured from the baseline of the top line to the ascenders of the
second line?
I tried adding the space with padding-bottom, but it adds it below the
descenders. So the actual space between lines is larger than I specified.
Jacob
I should add that I could make it work with line-height, but that would
require me to know the font size in advance.
Jacob
Jacob Weber wrote in
<ja*************************@news03.east.earthlink .net>
In article <ja*************************@news03.east.earthlink .net>,
Jacob Weber <ja***@jacobweber.com> wrote:Hello. Is it possible to specify the exact space between two lines,
measured from the baseline of the top line to the ascenders of the
second line?
I tried adding the space with padding-bottom, but it adds it below
the descenders. So the actual space between lines is larger than I
specified.
Jacob
I should add that I could make it work with line-height, but that
would require me to know the font size in advance.
At a guess, you''re setting the font in px - can you get line-height to work
in the way you want if you set the font/line height in % or em?
--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.
Jacob Weber <ja***@jacobweber.com> wrote:In article <ja*************************@news03.east.earthlink .net>,
Jacob Weber <ja***@jacobweber.com> wrote:Hello. Is it possible to specify the exact space between two lines,
measured from the baseline of the top line to the ascenders of the
second line?
I tried adding the space with padding-bottom, but it adds it below the
descenders. So the actual space between lines is larger than I specified.
I should add that I could make it work with line-height, but that would
require me to know the font size in advance.
Why?
line-height: 1.2; sets the line-height to be 1.2 times the font-size,
doesn''t matter what the font size is.
If this isn''t enough then I think you''re not giving us all the details
of your particular situation.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don''t like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
这篇关于将确切空间设置在基线以下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!