Home Article css实现左右滑动效果

css实现左右滑动效果

Source:css实现左右滑动效果 Release time:2019-07-22 Author:Mr.赵 Reading volume:232
<!DOCTYPE html>
<html>
<head>
<title>纯css实现左右滑动</title>
<style type="text/css">
ul,li{
list-style: none;;
}
.slide-box{
margin-top:200px;
display: -webkit-box;
overflow-x: auto;
/*适应苹果*/
-webkit-overflow-scrolling:touch;
}
.slide-item{
width: 300px;
height: 300px;
border:1px solid #ccc;
margin-right: 30px;
background: pink;
}
/*隐藏掉滚动条*/
.slide-box::-webkit-scrollbar {
display: none;
}
</style>
</head>
<body>
<ul class="slide-box">
<li class="slide-item"></li>
<li class="slide-item"></li>
<li class="slide-item"></li>
<li class="slide-item"></li>
<li class="slide-item"></li>
</ul>
</body>
</html>
  
I want to comment
Leave a message
http://boke.zhaozhiqi.top/index.php/
User login
You have not written any reviews yet!
You have commented!
Can only praise once!
You have a collection!