简体   繁体   English

使用 html5 和 css3 的字体样式

[英]Font styling using html5 and css3

HelveticaNeue font is used in this text本文使用 HelveticaNeue 字体

Image 1图 1

在此处输入图片说明

Now I am trying to do the same styling in image 2 with the same font HelveticaNeue.现在我正在尝试使用相同的字体 HelveticaNeue 在图像 2 中执行相同的样式。 I have tried all the font styling but I am not getting exactly the same styling like font which is used in image 1. So, please help me in resolving this problem我已经尝试了所有的字体样式,但我没有得到与图像 1 中使用的字体完全相同的样式。所以,请帮我解决这个问题

Image 2图 2

在此处输入图片说明

First of all I would just play around and search for different ways to adjust your text.首先,我会四处寻找不同的方法来调整您的文本。

I would suggest you play around with font-size and especially line-height , which is where you adjust the space between your white and yellow text.我建议您使用font-size ,尤其是line-height ,这是您调整白色和黄色文本之间的空间的地方。

I would also look at font-weight , since it does look like your text is a little too thick comparing to the other one.我也会看看font-weight ,因为它看起来你的文字与另一个相比有点太厚了。

Hope this helps!希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM