【发布时间】: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
我想在 CSS 中创建我的字体系列:工作 sans
我怎样才能做到
我的代码:
<h4 style="color : white ; font-family :work sans; font-size:14px;">hello word</h4>
【问题讨论】:
标签: html css fonts html-helper helper
您可以定义以下选择器以实现您要求的 h4 元素的样式。
完整代码在codepen:
或为您的 css 文件中的 h4 元素附加以下选择器:
h4 {
color: white;
font-family: work sans;
font-size: 14px;
}
【讨论】: