margin-bottom
介绍
设置与元素相关联的盒子模型的下外边距,这个值可以为负值。
取值
<length>
以固定值为外边距。<percentage>
相对于包含块的宽度,以百分比值为外边距。默认值 0px
样例:
/* <length> values */
margin-bottom: 0.5em;
margin-bottom: 0;
margin-bottom: 2rpx;
/* <percentage> value */
margin-bottom: 10%;
1
2
3
4
5
6
7
2
3
4
5
6
7
标准化语法
<length> | <percentage>
1
与 Web 的区别
暂时不支持 inherit、initial、revert、unset 等取值。