如何在 bootstrap 中切换全局字体系列并更新 $font-family-base
How to switch the global font family and update $font-family-base in bootstrap
我在表单正文中设置了以下字体系列:
The font which I have
现在我需要以下字体系列:
The font family I need
这 link https://getbootstrap.com/docs/4.0/content/reboot/ 告诉以下内容:
enter image description here
因此根据此 link 默认值被删除并替换为“本机字体堆栈”。
要切换全局字体系列,我需要更新 $font-family-base 并重新编译 Bootstrap。我是 bootstrap 的新手。请告诉我如何更改整个表单的字体系列。
html,* {
font-family: '--apple-system','san-serif',
font-size:16px;
}
我在表单正文中设置了以下字体系列: The font which I have
现在我需要以下字体系列: The font family I need
这 link https://getbootstrap.com/docs/4.0/content/reboot/ 告诉以下内容: enter image description here
因此根据此 link 默认值被删除并替换为“本机字体堆栈”。
要切换全局字体系列,我需要更新 $font-family-base 并重新编译 Bootstrap。我是 bootstrap 的新手。请告诉我如何更改整个表单的字体系列。
html,* {
font-family: '--apple-system','san-serif',
font-size:16px;
}