Css rendering (1) font and text, css rendering font text

Source: Internet
Author: User

Css rendering (1) font and text, css rendering font text

I. Font attributes

1. default font family

Chrome/opera: ""

Firefox: ""

Safari/IE: Times, ""

2. Font attributes

Font type

Font-family defines the font type during initialization, such as

 
Font-family: arial, "", ""; // [note] If the browser recognizes the first font, it is displayed in the first font. If it is not recognized, then try the next one.

Font Size

Font-size

Apply to: All elements

Inheritance: Yes

Percentage: font-size relative to the parent Element

Default font size

Chrome/firefox/opera/IE/safari: 16px

Minimum font size

Chrome: 12px

Opera: 9px

Safari/IE/firefox: None

Bold font

[1] common values

Font-weight: normal (normal, default) font-weight: bold (bold)

[2] All values

Normal (normal)/bold (bold)/bolder (thicker)/lighter (finer)

100/200/300/400/500/600/700/800/900 (100 is the finest, 900 is the largest)

Font Style

Font-style: normal (default) font-style: italic (italic) font-style: oblique (Skew)
Row Height
Line-height: normal (default) line-height: specific value

Color 

color:red

 

Related Article

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.