16 lines
299 B
Markdown
16 lines
299 B
Markdown
# NextJs + NextUI
|
||
|
||
|
||
1. 为什么 `pages/*` 添加NextUI后无效
|
||
|
||
后来发现,在`pages/*`中使用tailwind也无效,原来原因是没有在css文件中引入tailwind
|
||
|
||
添加 `globals.css` 文件,在`_app.tsx`中导入
|
||
|
||
|
||
```css
|
||
@tailwind base;
|
||
@tailwind components;
|
||
@tailwind utilities;
|
||
```
|