CSS inheritance of

  • Set some properties to the parent element, child elements can also be used, we call this inheritance.
  • Not all elements have inherited, only to color / font- / text- property / inheritance can only be the beginning of the line-
  • Son can inherit not just in the CSS inheritance, as long as the offspring can inherit
  • a label text color and underscores are not inherited
  • Text Size h labels are not inherited
  • Inheritance general public for information on the settings page, such as page text color, font and size
  • Pseudo-element, disposed pseudo-class can not inherit the

Guess you like

Origin www.cnblogs.com/cowboybusy/p/11459004.html