这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
align-tracks
CSS property sets the alignment in the masonry axis for grid containers that have
masonry
in their block axis.
/* Keyword values */ align-tracks: start; align-tracks: space-between; align-tracks: center; align-tracks: start,center,end; /* Global values */ align-tracks: inherit; align-tracks: initial; align-tracks: unset;
The property can take a single value, in which case all tracks are aligned in the same way. If a list of values is used then the first value applies to the first track in the grid axis, the second to the next and so on.
If there are fewer values than tracks, the last value is used for all remaining tracks. If there are more values than tracks, any additional values are ignored.
start
The items are packed flush to each other toward the start edge of the alignment container in the masonry axis.
end
The items are packed flush to each other toward the end edge of the alignment container in the masonry axis.
center
The items are packed flush to each other toward the center of the alignment container along the masonry axis.
normal
start
.
baseline
first baseline
last baseline
first baseline
is
start
, the one for
last baseline
is
end
.
space-between
The items are evenly distributed within the alignment container along the masonry axis. The spacing between each pair of adjacent items is the same. The first item is flush with the main-start edge, and the last item is flush with the main-end edge.
space-around
The items are evenly distributed within the alignment container along the masonry axis. The spacing between each pair of adjacent items is the same. The empty space before the first and after the last item equals half of the space between each pair of adjacent items.
space-evenly
The items are evenly distributed within the alignment container along the masonry axis. The spacing between each pair of adjacent items, the main-start edge and the first item, and the main-end edge and the last item, are all exactly the same.
stretch
The items stretch along the masonry axis to fill the content box. Items with definite size do not stretch.
Value not found in DB!
Syntax not found in DB!
| 规范 | 状态 | 注释 |
|---|---|---|
|
未知
The definition of 'align-tracks' in that specification. |
未知 | 初始定义 |
The compatibility table in 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.
No compatibility data found. Please contribute data for "css.properties.align-tracks" (depth: 1) to the MDN 兼容性数据存储库 .
justify-tracks
,
masonry-auto-flow