gpt4 book ai didi

html - 如何制作最细的字体

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

我在 photoshop 中有一个字体:

photoshop

当我设置 font-weight: 100 时,结果太粗体

result

Font-size:72px, font-family:"Montseratt"

当我将 font-weight300 更改为 400 时,字体也会发生变化(对于 font-weight: 100, 200, 300 字体相同)。我想这意味着该属性有效,但是我怎样才能使字体比该属性可以设置的值更细

最佳答案

你可以做到这一点。

you make a typo it's font-family: 'Montserrat', sans-serif; not font-family:"Montseratt"

body {
font-family: 'Montserrat', sans-serif;
font-size: 50px;
}

.thin {
font-weight: 100;
}

.normal {
font-weight: 400;
}
<link href="https://fonts.googleapis.com/css?family=Montserrat:100,400" rel="stylesheet">

<p class="thin">THIN<p>
<p class="normal">NORMAL</p>

关于html - 如何制作最细的字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50208004/

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