数据分析师2017-10-01 00:25:51
How to hide the scroll bar in css? -PHP Chinese website Q&A-How to hide the scroll bar in css? -PHP Chinese website Q&A
Let’s take a look and learn.
迷茫2017-02-21 10:05:54
哈哈,不用js模拟的话,还有个超简单的纯css做法:
<div class="wrapper"> <div class="your-div"> </div> </div>
.wrapper { overflow: hidden; /* 子div让超过的部分隐藏(滚动条) */ } .your-div { left: 30px; /* 故意让div右移,达到挡住右侧滚动条的目的 */ }