【发布时间】:2022-01-04 17:06:24
【问题描述】:
grid-template-areas:
'votes commentBody commentBody'
'votes commentBody commentBody'
'commentBottom commentBottom commentBottom'
'{replies.length ? 'replies replies replies' : ''}';
但这会出错
有可能吗?如果不是,为什么不,我将如何处理? (我想内联样式也可以工作,或者我可以做一些类似 styled-components 的事情)
【问题讨论】:
-
AFAIK 在样式标签中是不可能的,但可以内联使用它们
-
我是用类做的,但还是谢谢 :)
-
另一种方法是使用 css 变量代替,这是一个触摸清洁器