CSS common inherited property

Time flies to work in two weeks, using the attribute inheritance can improve code readability.

Here is my personal summary, though incomplete, but common:

  1, the font family property

  font-family: font family

  font-weight: font weight

  font-size: font size

  2, text attributes series

  text-indent: text-indent

  text-align: horizontal alignment of text

  line-height: Row Height

  word-spacing: the distance between words

  letter-spacing: the distance between the Chinese letters or

  text-transform: Control text case (that is, uppercase, lowercase, capitalize three)

  color: text color (usually just give the parent element is set on it)

  3, elements Visibility:

  visibility: hidden control elements are displayed

  4, the list layout attributes:

  list-style: style list, including list-style-type, list-style-image, etc.

  5, the cursor property:

  cursor: The cursor is displayed as what form

Guess you like

Origin www.cnblogs.com/xiaojuziya/p/12024631.html