Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何更改导航器的渲染字体_Html_Css - Fatal编程技术网

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

Html 如何更改导航器的渲染字体,html,css,Html,Css,我正在使用ATOM,我试图在我的代码中从谷歌字体更改字体系列,但有些东西没有改变 首先我要做的是: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&displa

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


首先我要做的是: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">
2:

在css文件中

@导入url(“”)

然后

然后在css中

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

你能完成你的描述吗?