【前端】-015-页面制作-CSS-盒模型

2017-01-11  本文已影响21人  9756a8680596

什么是盒模型

**Box Model**

CSS Box Model is a CSS module that defines the rectangular boxes, including their padding and margin, that are generated for elements and laid out according to the visual formatting model.

盒模型的属性

  1. 元素的宽度
  1. 元素的高度
  1. 填充

The padding area is the space between the content of the element and its border.

  1. 元素的边框
  1. 元素之间的间距

补充知识

  1. 块状元素(block)
  1. 内联元素,行内元素(inline)
  1. 内联块状元素(inline-block)
上一篇 下一篇

猜你喜欢

热点阅读