scroll-margin-bottom
版本: CSS3
scroll-margin-bottom属性定义滚动区域的下边距。滚动区域是通过获取变换后的边界框,找到其矩形边界框(轴在滚动容器的坐标空间中对齐),然后添加指定的外框来确定的。
示例
/* <length> values */ scroll-margin-bottom: 10px; scroll-margin-bottom: 1em; /* Global values */ scroll-margin-bottom: inherit; scroll-margin-bottom: initial; scroll-margin-bottom: unset;
浏览器支持
![]() |
![]() |
![]() |
![]() |
![]() |
IE、safari浏览器不支持
scroll-margin-bottom
,其余浏览器都支持
scroll-margin-bottom
|
语法
scroll-margin-bottom : <length>
取值
-
<length>
:从滚动容器的下边缘开始。参见
<length>
默认值 | 0 |
适用于 | 滚动框 |
继承性 | 无 |
动画性 | 按计算值类型 |
计算值 | 指定值 |
实例
scroll-margin-bottom: 0; scroll-margin-bottom: 20px; scroll-margin-bottom: 2em;