Blogger Information
Blog 16
fans 1
comment 0
visits 14175
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
2019年7月3日作业(二) - 盒模型中的内外边距, 边框的样式设置有什么不同
杜强_上海_315106编程学习
Original
779 people have browsed it

以下盒模型的理解

  1. 盒模型可以理解为我们买鞋子的鞋盒,

  2. 外边距:margin,外边距为透明的,只能设置宽度,没有其他属性,因为就像鞋盒外部的宽度,只能表述出鞋盒外边距为50cm,但是确看不到任何颜色,装饰!只是一个宽度表示!

  3. 内边框:padding,内边距透明,也只能设置宽度。

  4. 边框:border,可以设置宽度及样式、颜色!简单来说border就是鞋盒子的鞋边!鞋盒子的边边是可以设置宽度,颜色及样式的!

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post