离子4-移除滚动条 [英] Ionic 4 - Remove Scroll Bar
本文介绍了离子4-移除滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Ionic 4中删除滚动条并保持滚动和使用阴影DOM的最佳方法是什么?
What is the best method to remove the scroll bar in Ionic 4 while still keeping the ability to scroll and using the shadow DOM?
::-webkit-scrollbar,
*::-webkit-scrollbar {
display: none;
}
以上内容无效.
推荐答案
尝试一下,它将对我在ionic 4中正常工作
ion-content {
--offset-bottom: auto!important;
--overflow: hidden;
overflow: auto;
&::-webkit-scrollbar {
display: none;
}
}
这篇关于离子4-移除滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文