I want an item to start at the first column and end at the last column, no matter how many columns there are.
It should work like this:
item {
grid-column-start: 1;
grid-column-end: -1;
}
according to MDN:
Contributes the nth grid line to the grid item’s placement. If a negative integer is given, it instead counts in reverse, starting from the end edge of the explicit grid.
So this would only work on explicit grids? Why shouldn't it work on implicit grids?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…