CSS font-family marked in italics presentation need to use text font name is printed in italics, and font name is marked in italics DFKai-sb or directly with the Chinese standard Times New Roman , as long as with CSS design text font, you can To use Biaokai, just apply the font name of Biaokai to font-family , but whether there is a way to show the effect of Biaokai, it depends on whether the netizen’s computer has a Biaokai font! This point will be discussed later. If you need to use font-family to design Biaokai, the following is the syntax of Biaokai.
CSS font-family standard font grammarfont-family: DFKai-sb;
The font name of Biaokai is DFKai-sb, and some browsers also support the parameter value of Chinese "标楷体", such as basic grammar, apply to the attribute value of font-family . If you want to use Chinese "标楷体" directly Parameter value, please try a few different browsers for testing to avoid failure.CSS font-family standard italics syntax example<div style="font-family:DFKai-sb;">DIV uses standard italics text</div>
<div style="font-family:标楷体;">DIV uses standard italics text</div>
< span style="font-family:DFKai-sb;">span uses standard italics text</span><br>
<a href="#" style="font-family:DFKai-sb;">Hyperlink uses Standard italics font</a>
Rendering effectThe example provides the effect of using font-family to mark italics for three web elements. The first and second lines use font-family in the DIV block, the third line is used in the span area, and the fourth line is Use font-family directly in hyperlinks to make hyperlinks into italics. This is the characteristic of CSS . The same effect can be applied to many different web page elements. If you want to know more about these web page elements in the example , You can refer to the teaching of these articles.- How to use CSS DIV block tags
- Introduction to CSS span tag usage
- HTML a href link attribute
The first paragraph mentioned that Biaokai fonts may not appear smoothly. It depends on whether netizens have Biaokai fonts. The main reason is that Biaokai fonts are standard fonts for Windows. Not all operating systems have Biaokai fonts. It may not be able to render the effect smoothly. It is recommended to use the multi-font filtering function of font-family to preset several different text fonts for netizens’ browsers to filter. For the design rules of font-family, please refer to this article : CSS font-family font .
Post a Comment
0 Comments