gpt4 book ai didi

html - 字体百分比

转载 作者:太空宇宙 更新时间:2023-11-04 16:29:15 25 4
gpt4 key购买 nike

在样式表中找到这段代码:

.dropcap
{
float:left;
font:normal 290%/85%;
line-height:90%;
padding-right:0.02em;
margin-bottom:-0.1em;
}

谁能告诉我百分比(290% 和 85%)代表什么?我以为 85% 是行高,但我显然错了。

最佳答案

290%应该是font-size,没错,85%应该是line-height,但是,那个font 速记声明不完整:它应该不执行任何操作。您需要在 font 简写中设置一个 font-family 使其成为有效的属性值。

http://jsfiddle.net/5Yh3g/

font:normal 290%/85% 'Times New Roman', Times, serif;

编辑:不,即使它是预处理代码,它仍然是一个无效的属性值。

关于html - 字体百分比,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23233324/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com