横向滚动条

Posted souldawn

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了横向滚动条相关的知识,希望对你有一定的参考价值。

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

以上是关于横向滚动条的主要内容,如果未能解决你的问题,请参考以下文章

JQ 如何判断横向滚动条到最右侧

el-scrollbar隐藏横向滚动条

调整tree-select组件高度及横向滚动条

tab导航栏横向滚动条-tabScroll

请教advStringGrid横向滚动条问题,如何去掉右边那么多空白

浏览器页面出现横向滚动条