Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the safe fonts that CSS can use?

Shulou Source: shulou.com Published: 2022-06-01 10:48:40 10月03日 Update

This article is a detailed introduction to "What are the security fonts CSS can use?" The content is detailed, the steps are clear, and the details are properly handled. I hope this article "What are the security fonts CSS can use?" can help you solve your doubts. Let's go deeper and learn new knowledge together with the ideas of the small editor.

I. CSS application download custom fonts

If you want to set your own font, there is a way to download the font corresponding to eot font, ttf font, woff font. Apply @font-face font-family to introduce custom fonts.

Download font code using me:

@font-face { font-family : name ; src : url( url ) ; sRules }

Namely:

@font-face { font-family: 'codropsicons'; src:url('.../ codropsicons.eot'); }

Express:

Codropsicons for their own custom fonts, url is the font file you download the way, while the font file needs to be placed in div css construction project, CSS font path introduced exactly.

It is worth noting that @font-face introduces downloaded fonts, but eot fonts are relatively difficult to find, and often require money to buy.

2. CSS Insurance

Usually CSS settings when the web page structure is equipped with fonts are relatively safe to use fonts, but also equal to each computer system default installation of fonts.

CSS5 is recommended to be used frequently:

Middle Calligraphy:

Tahoma

blackbody

Microsoft YaHei

English calligraphy:

Arial, Helvetica, sans-serif

Tahoma, Geneva, sans-serif

Read here, this article "CSS can use what security fonts" article has been introduced, want to master the knowledge points of this article also need to practice to understand, if you want to know more related content of the article, welcome to pay attention to the industry information channel.

Tags: Font security article content Daquan document time calligraphy demand application proper piecemeal code at the same time Song style ideas furnishings new knowledge more steps Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Technology MySQL macOS Shulou Information