Blogger Information
Blog 54
fans 4
comment 1
visits 54814
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
对于盒模型中的内外边距, 边框的样式设置有什么不同,盒模型的每个要素的排列规则-2019年7月3日
神仙不在的博客
Original
598 people have browsed it

对于盒模型中的内外边距, 边框的样式设置有什么不同?

margin和padding都是透明无色的,只能设置width

border有width,color,style三种属性。

这3者都是从上右下左来描述的。

展开一下

margin:10px 20px  表示上下为10px,左右为20px

margin:10px 20px 30px  表示上为10px,左右为20px,下为30px


Correction status:qualified

Teacher's comments:
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