码迷,mamicode.com
首页 > 其他好文 > 详细

横向滚动条

时间:2017-01-10 21:19:37      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:alert   div   cti   padding   滚动   touch.js   java   ble   name   

<!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>

横向滚动条

标签:alert   div   cti   padding   滚动   touch.js   java   ble   name   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!