如何在不使用overflow:hidden的情况下隐藏css中溢出div的滚动条?

时间:2015-05-20 06:38:14

标签: css scrollbar

我有一个overflow:scroll的div,水平滚动。 如何在css中隐藏div的滚动条?

2 个答案:

答案 0 :(得分:0)

使用webkit。

.hiddenscrollbars::-webkit-scrollbar { 
    display: none; 
}

JSFiddle

答案 1 :(得分:0)

看看这个

<div class="scroll">You can use the overflow property when you want to have better control of the layout. The default value is visible.</div>

div.scroll {
    background-color: #00FFFF;
    width: 200px;
    height: 100px;
    overflow: scroll;
}

http://jsfiddle.net/vasanthanvas/zdwf0a0q/