next.js样式内置样式写法并不好用,所以我这里用到了插件
@emotion/react
参考网址:https://emotion.sh/docs/introduction
首先安装库,链接里有详细内容
2.页面引入
3. 使用实例
4,在return里写组件的时候,最外层添加一个属性
next.js样式内置样式写法并不好用,所以我这里用到了插件
@emotion/react
参考网址:https://emotion.sh/docs/introduction
首先安装库,链接里有详细内容
2.页面引入
3. 使用实例
4,在return里写组件的时候,最外层添加一个属性