CSS font-zhujian

Source: Internet
Author: User
CSS font-bamboo 1. font-family

Unlimited font list. The font contains spaces and must be enclosed in quotation marks, for example, "Times Now Roman"

Generic font family (all operating systems are available and placed at the end of the list as backup fonts)

General font Related fonts included
Serif Times, Times New Roman

Sans-serif

(Sans means no additional decoration, easier to read than serif)

Arial, Helvetica
Monospace Courier, Courier New

2. font-size

If this parameter is not specified, the browser defaults to 16px (= 1em)

Solution for displaying the same text size in all browsers and allowing scaling-percent + em:

1 body{font-size: 100%;}2 h1{font-size: 2.5em;}3 h2{font-size: 1.875em;}4 p{font-size: 0.875em;}

3. font-style: normal/italic/oblique

When no italic style is used, Safair uses the default font. IE ignores this style and uses the original font.

4. font-weight: normal/bold5.font-variant: normal/small-caps (small uppercase letters)

Abbreviation: font-size, font-family [other options]/line-height

CSS3.0 server font -- @ font-face -- IE9 and above

1 @ font-face {2 font-family: WebFont; 3 src: url ('fontin _ sans_r_45b.otf') format ("opentype "); /* font file path and font file format */4 font-weight: normal; 5} 6 h1 {7 font-family: WebFont; 8}

1 @ font-face {2 font-family: Helvetica; 3 src: local ("Helvetica Neue"), url ('server-side fonts ');/* search for local fonts first, search for the font on the server */4}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.