自訂Scrollbar - 白色

by ph822720355

HTML

<div class="outer">
  


<div>
  


if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
<br/>
<br/>
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
<br/>
<br/>
if you see this code, you can configure as you wish. this is a dark scrollbar with arrow buttons. test 1 2 3 4. 
if you see this...

CSS

.outer {
    width: 500px;
    height: 100px;
    white-space: nowrap;
    position: relative;
    overflow-x: scroll;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.outer div {
    width: 24.5%;
    background-color: #eee;
    float: none;
    height: 90%;
    margin: 0 0.25%;
    display: inline-block;
    zoom: 1;
}

html {
  background: black;
}

::-webkit-scrollbar {
    width: 12px !important;  /* 水平scroll bar */
	height: 12px !important; /* 垂直scroll bar */
	background-color: transparent !important;
}

::-webkit-scrollbar-corner,
::-webkit-scrollbar-track {
    background-color: #e8e8e8;
}

::-webkit-scrollbar-thumb {
	border-radius: 20px !important;
    background-color: rgba(0, 0, 0, 0.1);
    background-clip: padding-box;
    border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:active {
    background-color: rgba(0,0,0, 0.3);
}

/* Buttons */
::-webkit-scrollbar-button:single-button {
    background-color: #e8e8e8;

    display: block;
    background-size: 10px;
    background-repeat: no-repeat;
}

/* Up */
::-webkit-scrollbar-button:single-button:vertical:decrement {
    height: 12px;
    width: 16px;
    background-position: center 4px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgba(0, 0, 0, 0.1)'><polygon points='50,00 0,50 100,50'/></svg>");
}

::-webkit-scrollbar-button:single-button:vertical:decrement:hover {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgba(0, 0, 0, 0.2)'><polygon points='50,00 0,50 100,50'/></svg>");
}

::-webkit-scrollbar-button:single-button:vertical:decrement:active {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgba(0,0,0, 0.3)'><polygon points='50,00 0,50 100,50'/></svg>");
}

/* Down...