scroll-margin-block-end
property defines the margin of
the scroll snap area at the end of the block dimension that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container’s coordinate space), then adding the specified outsets.
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
/* <length> values */ scroll-margin-block-end: 10px; scroll-margin-block-end: 1em; /* Global values */ scroll-margin-block-end: inherit; scroll-margin-block-end: initial; scroll-margin-block-end: unset;
An outset from the block end edge of the scroll container.
| 初始值 |
0
|
|---|---|
| 适用于 | 所有元素 |
| 继承 | no |
| 计算值 | 如指定 |
| 动画类型 | by computed value type |
<length>
| 规范 | 状态 | 注释 |
|---|---|---|
|
CSS Scroll Snap Module Level 1
The definition of 'scroll-margin-block-end' in that specification. |
候选推荐 | 初始定义 |
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
更新 GitHub 上的兼容性数据| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
scroll-margin-block-end
|
Chrome 完整支持 69 | Edge 完整支持 79 | Firefox 完整支持 68 | IE 不支持 No | Opera 完整支持 56 | Safari 不支持 No | WebView Android 完整支持 69 | Chrome Android 完整支持 69 | Firefox Android 完整支持 68 | Opera Android 完整支持 48 | Safari iOS 不支持 No | Samsung Internet Android 完整支持 10.0 |
完整支持
不支持
scroll-margin
scroll-margin-block
scroll-margin-block-end
scroll-margin-block-start
scroll-margin-bottom
scroll-margin-inline
scroll-margin-inline-end
scroll-margin-inline-start
scroll-margin-left
scroll-margin-right
scroll-margin-top
scroll-padding
scroll-padding-block
scroll-padding-block-end
scroll-padding-block-start
scroll-padding-bottom
scroll-padding-inline
scroll-padding-inline-end
scroll-padding-inline-start
scroll-padding-left
scroll-padding-right
scroll-padding-top
scroll-snap-align
scroll-snap-coordinate
scroll-snap-destination
scroll-snap-points-x
scroll-snap-points-y
scroll-snap-stop
scroll-snap-type
scroll-snap-type-x
scroll-snap-type-y