“Przewiń CSS” Kod odpowiedzi

Niestandardowy pasek

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

Gładkie przewijanie CSS

html {
  scroll-behavior: smooth;
}

/* No support in IE, or Safari
You can use this JS polyfill for those */
http://iamdustan.com/smoothscroll/
deadlymuffin

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

Przewiń CSS

<div style="overflow: scroll;">
	<?php echo $this->element('menu/left_sidebar'); ?>
</div>

// overflow: scroll;
Zidane (Vi Ly - VietNam)

przepełnienie CSS

/* To solve overflow issue in IE,
always use properties separately,
do not use short hand */

div {
  overflow-x: hidden;
  overflow-y: auto;
}
Mohan Munna

Przewiń CSS

body::-webkit-scrollbar {
  width: 5px;
}

body::-webkit-scrollbar-thumb {
  border-left: 0;
  border-right: 0;
  background-color: #16b5ec;
}
Indonesia People

Odpowiedzi podobne do “Przewiń CSS”

Pytania podobne do “Przewiń CSS”

Więcej pokrewnych odpowiedzi na “Przewiń CSS” w CSS

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu