gpt4 book ai didi

html - 将字体规范从 Adob​​e XD 复制到 html/css

转载 作者:行者123 更新时间:2023-11-27 23:19:34 26 4
gpt4 key购买 nike

我在 Adob​​e XD 中有字体规范,屏幕宽度 1280px

font: Bold 29px/43px Poppins;
letter-spacing: -0.87px;

我想复制它以在我的 html/css 应用程序中响应工作,我尝试按原样复制它,但不能正常工作,我只是搜索了字体,这是它的 link , 我怎样才能做到这一点?

最佳答案

您可以使用此代码

body {
font-family: 'Poppins', sans-serif;
}
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet">
</head>
<body>
</body>
</html>

关于html - 将字体规范从 Adob​​e XD 复制到 html/css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58087643/

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