首页 > 其他 > 详细

横向滚动条

时间:2017-01-10 21:16:57      阅读:246      评论:0      收藏:0      [点我收藏+]

<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title></title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link rel="stylesheet" type="text/css" href="css/swiper.css" />
<style type="text/css">
* {
margin: 0;
padding: 0;
}

.a {
border: 1px solid #000;
box-sizing: border-box;
white-space: nowrap;
overflow: auto;
}

.b {
width: 90%;
height: 62px;
border: 1px solid #000;
display: inline-block;
line-height: 1;
margin-right: 15px;
vertical-align: top;
}
</style>
</head>
</style>

<body>
<div class="a">
<div class="b">

</div>
<div class="b">

</div>
<div class="b">

</div>
<div class="b">

</div>
<div class="b">

</div>
<div class="b">

</div>
<div class="b">

</div>
<div class="b">

</div>
<div class="b">

</div>
<div class="b">

</div>
<div class="b">

</div>
<div class="b">

</div>
<div class="b">

</div>
</div>
</body>
<script src="zepto.js" type="text/javascript" charset="utf-8"></script>
<script src="touch.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(".b").swipeDown(function(){
var length=$(".b").length;
alert(length);
})
</script>

</html>

横向滚动条

原文:http://www.cnblogs.com/scottchen950202/p/6270559.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!