The way to use the new CSS font-family font is very simple, just add the font code PMingLiU of Microsoft's new font-family to the font-family parameter of CSS . Some browsers also support the direct use of Chinese "new details". "Body" is used as the parameter value of font-family. The new CSS font-fmaily font can mark the text in the entire webpage or simply mark the text font of a DIV block. The key point is whether the browser has a built-in or installed font of the new font. The following is the actual Grammar and application examples. CSS font-family new detailed font syntax
font-family: PMingLiU;
The English code name of the new detailed body is PMingLiU. At that time, you can also write "new detailed body" directly. Now most of the new browsers support it, but we still need to test the actual rendering effect of several browsers. In addition, the new Minute font is the standard font of the traditional Chinese version of Microsoft operating system. It does not mean that users of non-Microsoft operating systems such as Apple iOS, Android, and Linux will have new font font, please use it at your own discretion. If you want to use the new font, you can consider adding a few more common fonts to font-family. For detailed usage, please refer to the following pages.Let's look at the practical application of several new font-family fonts.CSS font-family new detailed font example<div style="font-family:PMingLiU;">DIV uses new detailed
font text</div> <div style="font-family:新细明体;">DIV uses new detailed font text< /div>
<span style="font-family:PMingLiU;">span uses new detailed font text</span><br>
<a href="#" style="font-family:PMingLiU;">Super The link uses the new detailed text</a>
Output resultThe example applies the new font-family font to different web page elements. The first and second lines both set the text font in the DIV block to the new font. The third line is the span font. The four lines are the text font of the hyperlink. In addition, you can also use the new font-family font directly in the body tag of the web page HTML , so that the text in the entire web page defaults to the new detailed font font , For the usage rules of the body tag, please read the introduction of " HTML body tag ".
Post a Comment
0 Comments