【发布时间】:2018-01-19 15:04:36
【问题描述】:
我使用css grid-template-areas,像这样:
grid-template-areas:
'sidebar tags'
'sidebar categories';
它工作正常,但我想添加一个空元素,有点像这样:
grid-template-areas:
'EMPTY sidebar tags EMPTY'
'EMPTY sidebar categories EMPTY';
这可能吗?我知道我可以为其添加一个空的 html 元素,但我知道在大多数情况下,当仅使用 css 控制事物时,css 网格非常聪明。
【问题讨论】:
-
developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/… --> 看起来你可以使用句号?