Common content of Font series in CSS

Source: Internet
Author: User

Font

The values of the following five properties can be defined at once, and the first four are common. Not all of them are written, there is nothing, nothing is not written, each attribute value is separated by a space.

  To tell the truth, if you can write alone, I really do not know what the benefits of such writing, but also trouble

  Note: The Order of writing

    • Font-style
    • Font-variant
    • Font-weight
    • Font-size/line-height
    • Font-family

There are also some other property values: It is mainly used in the development of some special applications, such as drop-down lists, buttons, dialog boxes, icon markers, window status bar, etc.

    

Caption Defines the fonts that are used by header controls such as buttons, drop-down lists, and so on.
Icon Defines the font that is used by the icon tag.
Menu Defines the font that is used by the drop-down list.
Message-box Defines the font that is used by the dialog box.
Small-caption A small version of the caption font.
Status-bar Defines the font that is used by the window's status bar.

Font-family

Defines a font family, which can have multiple values, each of which is represented by a comma. If a value (that is, a font family) has multiple words, the value is marked with single or double quotation marks

such as: p { font-family:"Times New Roman",Georgia,Serif; };

Font-style

Define font family: normal Itallic Oblique

Italic and oblique show italics, but italic is a subtle change in the various parts of the word, oblique is realized by vertical tilt. But the two show up in the browser with no difference.

Font-weight

Normal bold (bold) bolder (thicker) lighter (finer) 100~900 (400 equals normal,700 equivalent bold)

  Note: The bold is not in Font-style, it was always confused.

Font-size

Font size, mainly px and EM units of the distinction, the current EM is not very clear, later update.

Font-varient

Normal Small-caps (the browser will display the words in small caps)

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.