在使用HTML字体样式时需要帮助

时间:2020-01-06 03:25:20

标签: html css fonts

我的代码需要帮助 我如何使用此字体样式-“ brandon grotesque”。 我似乎无法更改字体样式,因为我不知道如何插入 将此字体样式添加到我的代码中。 下面是我的代码:

<style>
footer{ 
position:absolute;
bottom:0;
width:100%;
height:100px;
margin-top:-100px;
border-style: solid;
border-width: 0px;
background-color: lightgrey;

}

</style>

<body>



<footer>
<div>
<p style="font-size: 30px; text-align:center;">&copy; Copyright 2020, SCOPE 
Industries Berhad</p>
</div>
</footer>

</body>
</html>

1 个答案:

答案 0 :(得分:2)

footer{ 
    position:absolute;
    bottom:0;
    width:100%;
    height:100px;
    margin-top:-100px;
    border-style: solid;
    border-width: 0px;
    background-color: lightgrey;
    font-family: 'any_font_name_you_imported', sans-serif !important;
}

示例:

<html>
      <head>
          <link href="https://fonts.googleapis.com/css? 
          family=Noto+Sans+SC&display=swap" rel="stylesheet">
      </head>
       <body>
             <footer>
                  <h1>Hii</h1>
             </footer>
       </body>
</html>
相关问题