“CSS Scrollbar” Kode Jawaban

Scrollbar khusus

body::-webkit-scrollbar {
  width: 12px;               /* width of the entire scrollbar */
}
body::-webkit-scrollbar-track {
  background: orange;        /* color of the tracking area */
}
body::-webkit-scrollbar-thumb {
  background-color: blue;    /* color of the scroll thumb */
  border-radius: 20px;       /* roundness of the scroll thumb */
  border: 3px solid orange;  /* creates padding around scroll thumb */
}
Elated Eagle

Ubah warna scrollbar

.scrollable-element {
  scrollbar-color: red yellow; /* red is for the thumb and yellow is for the track */
}
Super Sloth

coustomize srollbar

::-webkit-scrollbar {
    width: 12px;
}
 
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    border-radius: 10px;
}
 
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}
Inexpensive Ibis

CSS Edit Bilah Gulir

::-webkit-scrollbar{width:6px;border-left:1px solid #E6ECF8;}
::-webkit-scrollbar-thumb{background-color:#d6872c;}
Doubtful Dog

CSS VW Scrollbar

body {
  width: calc(100vw - (100vw - 100%));
}
Lazurite

CSS Scrollbar

<- modern css scrollbar css ->
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }
    ::-webkit-scrollbar-track {
    background: transparent; 
  }
    ::-webkit-scrollbar-thumb {
    background: #888; 
      border-radius:10px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #555; 
  } 
Aryamitra Chaudhuri

Jawaban yang mirip dengan “CSS Scrollbar”

Pertanyaan yang mirip dengan “CSS Scrollbar”

Lebih banyak jawaban terkait untuk “CSS Scrollbar” di CSS

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya