Font: inherit, fontinherit

Source: Internet
Author: User
Tags css inherit

Font: inherit, fontinherit
Font: Set the font of all elements to be consistent:

  • All elements: * {font: inherit;}/* IE8 + */
  • Body uses percent: body {font: 100%/1 sans-serif ;}
  • Other use em: div {font-size: 1.2em ;}
Refer:
Css-font-size-em-vs-px-vs-pt-
Css inherit

Table {font-size: inherit; font: 100% ??

Set the font size of the element. Note that it is actually set to the height of the character box in the font; the actual font may be higher or shorter (usually shorter) than these boxes ). Value description: xx-small x-small medium large x-large xx-large. Set the font size to different sizes, from xx-small to xx-large. Default Value: medium. Smaller sets font-size to a smaller size than the parent element. Larger sets font-size to a larger size than the parent element. Length: Set font-size to a fixed value. % Set font-size to a percentage value based on the parent element. Inherit specifies that the font size should be inherited from the parent element.
 
FONT-FAMILY: inherit

Inherit the font series styles of the parent element, such as and.
Note:
1. All mainstream browsers support the font-family attribute.
2. Any version of Internet Explorer (including IE8) does not support the attribute value "inherit"

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.