“CSS Ocultar rolagem” Respostas de código

Ocultar CSS da barra de rolagem

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge add Firefox */
.scrollbar-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none; /* Firefox */
}
Adarsh077

Remova CSS da barra de rolagem

/* Hide scrollbar for Chrome, Safari and Opera */
.example::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE and Edge */
.example {
  -ms-overflow-style: none;
}
Duco Defiant Dogfish

CSS Ocultar rolagem

/* Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}
/* Edge, Firefox */
body, html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* I removed IE because IE is gone */
Code Cat

Ocultar CSS da barra de rolagem

/* A very quick an applicable solution is to use this piece of code: */
html {
overflow: scroll;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 0px; /* remove scrollbar space /
background: transparent; / optional: just make scrollbar invisible /
}
/ optional: show position indicator in red */
::-webkit-scrollbar-thumb {
background: #FF0000;
}
Mehedi Islam Ripon

Ocultar CSS da barra de rolagem

.container {
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}
.container::-webkit-scrollbar { /* WebKit */
    width: 0;
    height: 0;
}
Smiling Salamander

Ocultar CSS da barra de rolagem

::-webkit-scrollbar {
    display: none;
}
Heenok

Respostas semelhantes a “CSS Ocultar rolagem”

Perguntas semelhantes a “CSS Ocultar rolagem”

Mais respostas relacionadas para “CSS Ocultar rolagem” em CSS

Procure respostas de código populares por idioma

Procurar outros idiomas de código