# margin-bottom

margin-bottom 属性设置与元素相关联的盒子模型的下外边距。可以为负值

# uni-app x 兼容性

Android iOS web
3.9 4.11 4.0

# 语法

margin-bottom: <length> | <percentage> | auto;

# margin-bottom 的属性值

auto 由浏览器自己选择一个合适的值。参见 margin。

# 默认值

0

注意
app端不支持外边距折叠 3.98以下版本当position:fixed|absolute时,margin不支持auto

# 兼容性

# margin-bottom 的属性值兼容性

Android iOS web
auto 3.9 4.11 4.0

# 浏览器兼容性

Chrome Edge Firefox Opera Safari IE
margin-bottom √( 1 ) √( 12 ) √( 1 ) √( 3.5 ) √( 1 ) √( 3 )

# 参见