bottom
介绍
bottom
属性定义了定位元素的下外边距边界与其包含块下边界之间的偏移,非定位元素设置此属性无效。定位元素参考position 属性。
取值
auto
<length>
固定的值<percentage>
参照于包含块宽度的百分比默认值 auto
样例:
/* <length> values */
bottom: 3px;
bottom: 2rpx;
bottom: 2.4em;
bottom: 3rem;
bottom: 10%;
/* Keyword value */
bottom: auto;
/* calc */
bottom: calc(1px + 1px);
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
标准化语法
auto | <length> | <percentage>
1
与 Web 的区别
暂时不支持 inherit、initial、revert、unset 等取值。