讨论数量:
Vue3+tailwind3.3 如何封装一个css
nodejs 中使用 jwttoken 来对字符串做 jwt 签名,现在我接收到了这个字符串,用 firebase/php-jwt 做解码的时候会提示错误
你自己品品,你问的问题是啥?
参考的这个帖子,tailwindcss 封装组件
在 main.css
中添加如下代码
.c-border-center-ddddd {
@apply border rounded-md border-gray-300 border-dotted flex justify-center items-center;
}
使用
<div class="c-border-center-ddddd">1</div>
官方文档:tailwindcss.com/docs/reusing-style...
官方文档搜索的关键词:
Encapsulated