有没有办法使用 Tailwind css 设置内容?
Is there a way to set content with Tailwind css?
我必须将一些样式从 css 更改为顺风,但一条规则似乎是不可能的。
例如,具有以下规则,在有序列表的元素之间添加一个 /
。
.breadcrumb ol li:not(:last-child)::after {
content: '/';
}
顺风可以吗? documentation里面有东西,但是好像太复杂了。
您需要启用 JIT
模式
那你就可以了
<div class="before:content-['/'] before:block ...">
我必须将一些样式从 css 更改为顺风,但一条规则似乎是不可能的。
例如,具有以下规则,在有序列表的元素之间添加一个 /
。
.breadcrumb ol li:not(:last-child)::after {
content: '/';
}
顺风可以吗? documentation里面有东西,但是好像太复杂了。
您需要启用 JIT
模式
那你就可以了
<div class="before:content-['/'] before:block ...">