Web front end-font specification

    Font specification

1 When setting the font style, you must use the css style sheet for the text font size style and line spacing, and prohibit the <font size=?> mark on the page

2 Font size: In the web page, you should first use Song Ti, English and numbers preferably use verdana and arial, generally use Chinese Song Ti 9pt and 11pt or 12px and 14.7px. This is the optimized font size, boldface or Song typeface plus When thick, 11pt and 14.7px font size are generally suitable

3 In order to maximize the automatic layout function of the browser, please try not to use <br> to manually interfere with the segmentation in a complete text

4 There should be a half-width space between words different from those in the text, except before the kinsoku symbol and after the kinsoku symbol. The punctuation between Chinese characters should be full-width punctuation, and the brackets around English letters and numbers should be half-width brackets

5 Please do not appear more than one consecutively in the web page, and try to use full-width spaces as little as possible (in English character sets, full-width spaces will become garbled). Blanks should be used as much as possible to use text-indent, padding, margin, hspace, vspace, and transparency Gif picture to achieve

6 It is recommended to define the line spacing as a percentage. The two commonly used line spacing values ​​are line-height: 120%/150%

7 In typesetting, we often encounter the need to indent the first line. Do not use or full-width spaces to achieve the effect. The standard approach is to define p{text-indent:2em;} in the style sheet, and then add each paragraph On the <p> tag, note that in general, please do not omit the </p> closing tag


Guess you like

Origin blog.51cto.com/14895198/2546087