Blogger Information
Blog 1
fans 0
comment 0
visits 1220
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
CCS中的盒模型
anwin89
Original
1221 people have browsed it

内边距:padding

padding:20px; 一个值表示:上下左右

padding:20px 30px; 两个值表示:上下、左右

padding:20px 30px 40px; 三个值表示:上、左右、下

padding:20px 30px 40px; 四个值表示:上、右、下、左

左边距:padding-left,右边距:padding-right,上边距:padding-top,下边距:padding-bottom

边框:border

border-radius: 10px; 边框圆角

box-shadow:10px 5px 3px #ccc inset; 边框阴影:X轴阴影位置、Y轴阴影位置、阴影大小的值、阴影颜色、内阴影

外边距:margin

margin:0px auto; 居中

*{pading: 0px;margin: 0px;} 浏览器自带的内外边距清零

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