![](/img/trans.png)
[英]My style is not rendering in Tailwindcss. Can someone help me understand the cause of this?
[英]I want to add my own css in tailwindcss. It is not adapted
我正在使用 next.js 和顺风。
我想隐藏滚动条。
我在style.css中写了一个隐藏滚动条的样式,但是没有应用。
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
body::-webkit-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
display: none;
}
您应该像这样扩展它:
@layer base {
body::-webkit-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
display: none;
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.