自訂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;
}

::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-corner,
::-webkit-scrollbar-track {
    background-color: rgb(64, 64, 64);
}

::-webkit-scrollbar-thumb {
    background-color: rgb(96, 96, 96);
    background-clip: padding-box;
    border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgb(112, 112, 112);
}

::-webkit-scrollbar-thumb:active {
    background-color: rgb(128, 128, 128);
}

/* Buttons */
::-webkit-scrollbar-button:single-button {
    background-color: rgb(64, 64, 64);

    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='rgb(96, 96, 96)'><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='rgb(112, 112, 112)'><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='rgb(128, 128, 128)'><polygon points='50,00 0,50 100,50'/></svg>");
}

/* Down */
::-webkit-scrollbar-button:single-button:vertical:increment {
    height: 12px;
    width: 16px;
    background-position: center 2px;
   ...