[英]I want to add my own css in tailwindcss. It is not adapted
I'm using next.js and tailwinds.我正在使用 next.js 和顺风。
I want to hide the scroll bars.我想隐藏滚动条。
I wrote a style to hide scrollbars in style.css, but it is not applied.我在style.css中写了一个隐藏滚动条的样式,但是没有应用。
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
body::-webkit-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
display: none;
}
You are suppose to extend it like this:您应该像这样扩展它:
@layer base {
body::-webkit-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
display: none;
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.