ul::after {
content: '';
display: block;
clear: both;
}
ul:after{
@apply block clear-both
}
剩下 content 不知道怎么加,目前是重新写了一个ul:after{content: ''},如果两个合并在一起 postcss 编译就出错了
1
bxb100 2021 年 5 月 14 日
tailwind does not support pseudo-elements.
|
2
bxb100 2021 年 5 月 14 日
|
4
molvqingtai 2021 年 5 月 15 日 via Android
正确的写法是抛弃 flaot
|
5
XTTX 2021 年 8 月 5 日
我觉得有点本末倒置了,tailwind 是给了我一些方便的 class,直接使用,这不意味着我要把所有 css 都改成 tailwind 规范的。index.css @tailwind 后面加入自己的 class 不香吗? 方正 tailwind 被 compile 完了,后面还是 css
|