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"