When using the shorthand property the order of the property values is:(It does not matter if one of the property values is missing, as long as the other ones are in this order.)

  • background-color
  • background-image
  • background-repeat
  • background-attachment
  • background-position

All the font properties in one declaration

font:italic bold 16px/30px Georgia, serif;

  • font-style
  • font-weight
  • font-size
  • line-height
  • font-family
  • a:link - a normal, unvisited link
  • a:visited - a link the user has visited
  • a:hover - a link when the user mouses over it
  • a:active - a link the moment it is clicked

When using the shorthand property, the order of the property values are:

  • list-style-type (if a list-style-image is specified, the value of this property will be displayed if the image for some reason cannot be displayed)
  • list-style-position (specifies whether the list-item markers should appear inside or outside(default) the content flow)
  • list-style-image (specifies an image as the list item marker)

If one of the property values above are missing, the default value for the missing property will be inserted, if any.

The border-collapse property sets whether the table borders should be collapsed into a single border:

  • border-collapse: collapse;
JSRUN前端笔记, 是针对前端工程师开放的一个笔记分享平台,是前端工程师记录重点、分享经验的一个笔记本。JSRUN前端采用的 MarkDown 语法 (极客专用语法), 这里属于IT工程师。