css
::-webkit-scrollbar
<html>
<head>
<title>-webkit-scrollbar</title>
<style type="text/css">
.div1 {
width:800px;height:100px;overflow-y: auto;border:1px solid #ccc;
}
.div2 {
width:800px;height:100px;overflow-y: auto;border:1px solid #ccc;
}
.div2::-webkit-scrollbar {
display:none;
}
</style>
</head>
<body>
<div>
<h2>CSS 自定義滾動條</h2>
<div class="div1">
<p>Falling in love with you was the easiest thing I’ve ever done.</p>
<p>愛上你是我做過的最容易的一件事象迎。</p>
<p>There are all kinds of people in this world. It happens that we have become friends. This is not fate. It is just that we should be friends.</p>
<p>這世界上有各種各樣的人,恰巧我們成為了朋友儿礼,這不是緣分绪妹,僅僅只是我們本就應(yīng)該是朋友。</p>
<p>The world’s full of lonely people afraid to make the first move.</p>
<p>這個世界每一個孤獨(dú)的人都害怕邁出第一步走净。</p>
<p>They don’t have a choice, but you do.</p>
<p>他們沒得選擇券时,但你有。</p>
<p>You never win with violence. You only win when you maintain your dignity.</p>
<p>你永遠(yuǎn)不會以暴力取勝伏伯。只有保持尊嚴(yán)才能戰(zhàn)勝一切橘洞。</p>
</div>
<br>
<br>
<br>
<br>
<div class="div2">
<p>Falling in love with you was the easiest thing I’ve ever done.</p>
<p>愛上你是我做過的最容易的一件事。</p>
<p>There are all kinds of people in this world. It happens that we have become friends. This is not fate. It is just that we should be friends.</p>
<p>這世界上有各種各樣的人说搅,恰巧我們成為了朋友炸枣,這不是緣分,僅僅只是我們本就應(yīng)該是朋友弄唧。</p>
<p>The world’s full of lonely people afraid to make the first move.</p>
<p>這個世界每一個孤獨(dú)的人都害怕邁出第一步适肠。</p>
<p>They don’t have a choice, but you do.</p>
<p>他們沒得選擇,但你有套才。</p>
<p>You never win with violence. You only win when you maintain your dignity.</p>
<p>你永遠(yuǎn)不會以暴力取勝迂猴。只有保持尊嚴(yán)才能戰(zhàn)勝一切。</p>
</div>
</div>
</body>
</html>