是不是你的container大小设置太小了,justify-content是在包含了网格项之后还有剩余空间时的网格项对齐方式。
不然也有可能是浏览器不支持?
----萌新如此回答
可以的
写成一行程序没问题,程序正常执行
grid-template-areas "title title header header" "time time swiper swiper" "block1 block2 swiper swiper" "block3 block4 swiper swiper" "block5 block6 swiper swiper" "block7 block7 video info"
但是格式很难看,失去了所见既布局的意思,多行的话,代码没有执行
grid-template-areas "title title header header"
"time time swiper swiper"
"block1 block2 swiper swiper"
"block3 block4 swiper swiper"
"block5 block6 swiper swiper"
"block7 block7 video info"