懒得讲原理了,直接贴代码:

css部分:

.slide-box {
margin-top: 200px;
display: -webkit-box;
overflow-x: scroll;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
}
.slide-item {
width: 200px;
height: 200px;
border: 1px solid #ccc;
margin-right: 30px;
}
::-webkit-scrollbar {
width: 0px;
}
::-webkit-scrollbar-track {
background-color: none;
}
::-webkit-scrollbar-thumb {
background-color: none;
}
::-webkit-scrollbar-thumb:hover {
background-color: none;
}
::-webkit-scrollbar-thumb:active {
background-color: none;
}
 
 
html部分:
<div class="slide-box">
<div class="slide-item">1</div>
<div class="slide-item">2</div>
<div class="slide-item">3</div>
<div class="slide-item">4</div>
<div class="slide-item">5</div>
</div>

最新文章

  1. linux中grep的应用
  2. html5 炫酷的字幕雨
  3. jquery.validate remote的用法
  4. HDU 2516 取石子游戏
  5. IDEA:Idea注册
  6. linux mysql查看安装信息
  7. Code Sign error: No unexpired provisioning profiles found that contain any of the keychain&#39;s signing certificates
  8. 全球说:要给 OneAlert 点100个赞
  9. [iOS基础控件 - 6.6.1] 展示团购数据代码
  10. HDOJ-ACM1017(JAVA)
  11. PAT_1018 锤子剪刀布
  12. CUDA与VS2013安装
  13. android和Vitamio使用比较
  14. JS和JQuery中的事件托付 学习笔记
  15. 在ubuntu上安装运行ionic项目
  16. 987. Binary Number with Alternating Bits
  17. Mysql忘记数据库密码以及用户授权案例展示
  18. Ajax异步请求原理的分析
  19. NSNotification相关
  20. 关于TFS2010 远程无法创建团队项目的若干问题总结

热门文章

  1. c#生成AVI自动设置压缩格式,不调用AVISaveOptions
  2. 【bzoj4591】[Shoi2015]超能粒子炮&#183;改
  3. SSDP 抓包
  4. 为JMenu中的JPopupMenu定制透明背景
  5. 【174】C#添加非默认字体
  6. DNS的主从、子域授权和转发服务器
  7. Rails5入门
  8. bzoj1085骑士精神(搜索)
  9. web自动化测试—selenium游览器多窗口操作
  10. Springboot拦截器线上代码失效