Sha*_*kar 3 font-family angular
我已经在(app.component.html)中为登录页面编写了html代码,而在(app.component.css)中是CSS,我想导入/使用Open sans,font-family。我在各个网站上看到不同的答案感到有些困惑。您能提供逐步的过程来使用Angle 4中的Open sans字体家族吗?
Deb*_*oti 10
步骤1:将链接插入到index.html页面中
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
Run Code Online (Sandbox Code Playgroud)
步骤2:在CSS文件(Component.css)中使用它
* {
font-family: 'Open Sans', sans-serif;
}
Run Code Online (Sandbox Code Playgroud)