【问题标题】:how to make in css my font family work sans?如何在css中制作我的字体家族作品?
【发布时间】:2021-03-14 18:34:13
【问题描述】:

我想在 CSS 中创建我的字体系列:工作 sans 我怎样才能做到 我的代码: <h4 style="color : white ; font-family :work sans; font-size:14px;">hello word</h4>

【问题讨论】:

    标签: html css fonts html-helper helper


    【解决方案1】:

    您可以定义以下选择器以实现您要求的 h4 元素的样式。

    完整代码在codepen:

    或为您的 css 文件中的 h4 元素附加以下选择器:

     h4 {
      color: white;
      font-family: work sans;
      font-size: 14px;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-17
      • 2015-12-20
      • 1970-01-01
      相关资源
      最近更新 更多