Background:颜色、图片、尺寸与定位 | CSS

本章覆盖:`background-color`;`background-image`;`background-repeat`;`background-position`;`background-size`;`cover`;`contain`;multiple backgrounds;shorthand;content image 与 decorative background 的语义区别;背景图不应替代需要 alt 的内容图片。

本章知识点

  • background-color
  • background-image
  • background-repeat
  • background-position
  • background-size
  • cover
  • contain
  • multiple backgrounds
  • shorthand
  • content image 与 decorative background 的语义区别
  • 背景图不应替代需要 alt 的内容图片