gpt4 book ai didi

html - 如何在我的网页上显示与 photoshop 中相同的字体?

转载 作者:太空宇宙 更新时间:2023-11-03 21:00:19 24 4
gpt4 key购买 nike

我在 photoshop 中有一个字体为“Arial 17 pt regular strong”的文本,我如何将它写在 css 中以显示相同的字体?

我的两个问题是:
1- photoshop中的pt单位,css中是什么?
2- 如果字体在 photoshop 中是粗体,在 css 中会是什么样子?

alt text

最佳答案

    .someclass{
font: bold 17px Arial, Helvetica, sans-serif;
}

如果你需要改变颜色:

.someclass{
font: bold 17px Arial, Helvetica, sans-serif;
color: #333;
}

关于html - 如何在我的网页上显示与 photoshop 中相同的字体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4442986/

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