gpt4 book ai didi

css - 使用谷歌字体 API

转载 作者:行者123 更新时间:2023-11-28 09:03:27 26 4
gpt4 key购买 nike

我是 Google 字体的新手。我从 Google 获得了这个 URL:

<link href='http://fonts.googleapis.com/css?family=Ubuntu:400,400italic,700,700italic' rel='stylesheet' type='text/css'>

我的问题是,如何使用我选择的各种字体。如您所见,它们是 Ubuntu Normal 400、Ubuntu Normal 400 Italic、Ubuntu Bold 700 和 Ubuntu 700 italic。

我什么都试过了,但只能使用普通的“Ubuntu”,别无他法。

请帮忙!

最佳答案

这是我使用的斜体版本:http://jsfiddle.net/6wzuy/

font-family:ubuntu;
font-style:italic;
font-weight: 700;

技术是使用CSS font-style Property

关于css - 使用谷歌字体 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14132226/

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