Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
497 views
in Technique[技术] by (71.8m points)

css - How to switch the global font family and update $font-family-base in bootstrap

I have following font-family set on form body: The font which I have

Now I need following font-family: The font family I need

This link https://getbootstrap.com/docs/4.0/content/reboot/ tells following : enter image description here

So according to this link the default dropped and replaced with a “native font stack”.
To switch the global font-family, I need to update $font-family-base and recompile Bootstrap. I am new to bootstrap. Please let me know how to change font-family for my entire form.

question from:https://stackoverflow.com/questions/66068146/how-to-switch-the-global-font-family-and-update-font-family-base-in-bootstrap

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
html,* {
font-family: '--apple-system','san-serif',
font-size:16px;
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...