i try to use ::-webkit-scrollbar ,but it's did't work It is achievable when I close the mobile terminal
Asked
Active
Viewed 52 times
0
-
why would you want to do this? If the content of the screen is more than the height of the device, scroll bar should appear. Still if you need this, you can try: https://stackoverflow.com/questions/16670931/hide-scroll-bar-but-while-still-being-able-to-scroll – Sudipto Roy Aug 07 '23 at 08:38
2 Answers
0
if think this is what you are looking for
*::-webkit-scrollbar{
display:none !impoirtant;
}

Maor T
- 1
- 1
-
Thank you for contributing to the Stack Overflow community. This may be a correct answer, but it’d be really useful to provide additional explanation of your code so developers can understand your reasoning. This is especially useful for new developers who aren’t as familiar with the syntax or struggling to understand the concepts. **Would you kindly [edit] your answer to include additional details for the benefit of the community?** – Jeremy Caney Aug 09 '23 at 01:25
0
Here is how you can hide the scrollbar on chrome, safari and opera:
*::-webkit-scrollbar {
display: none !important;
}
And here is how to hide it for IE, Edge, and Firefox
body {
-ms-overflow-style: none !important; /* IE and Edge */
scrollbar-width: none !important; /* Firefox */
}

MaikeruDev
- 1,075
- 1
- 19