padding-bottom

介绍

指定一个元素内容与下边界的距离,该属性不能为负值。

取值

  • <length> 以固定值为外边距。

  • <percentage> 相对于包含块的宽度,以百分比值为外边距。

  • 默认值 0px

样例:

/* <length> values */
padding-bottom: 0.5em;
padding-bottom: 0;
padding-bottom: 2rpx;

/* <percentage> value */
padding-bottom: 10%;
1
2
3
4
5
6
7

标准化语法

<length> | <percentage>
1

与 Web 的区别

暂时不支持 inherit、initial、revert、unset 等取值。

Last Updated: 2022/7/15 下午7:22:06