gpt4 book ai didi

html - 如何更改导航器的渲染字体

转载 作者:行者123 更新时间:2023-11-27 22:56:42 24 4
gpt4 key购买 nike

我正在使用 ATOM,我试图在我的代码中更改主体的 google 字体的字体系列,但有些东西没有改变。

首先我这样做:href="https://fonts.googleapis.com/css?family=Roboto&display=swap"rel="stylesheet"type="text/css"

最佳答案

好的,有几种导入谷歌字体的方法

1:在 html>head

<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">

然后在 css 中

body{
font-family: 'Roboto', sans-serif;
}

2:

在CSS文件中

@import url(' https://fonts.googleapis.com/css?family=Roboto&display=swap ');

然后

然后在 css 中

body{
font-family: 'Roboto', sans-serif;
}

关于html - 如何更改导航器的渲染字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59221835/

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