代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>上拉加载</title>
<style>
html{
font-size: 18px;
}
.containter{
background: #ccc;
height: 700px;
overflow: auto;
}
.content{
}
.item{
font-size: 3rem;
text-align: center;
}
.bottom-line{
text-align: center;
background: #666
}
</style>
<!-- $('.bottom-line').css('display','block').text('正在刷新...') -->
</head>
<body>
<div class="containter">
<div class="content">
<div class="item">上拉加载功能1</div>
<div class="item">上拉加载功能2</div>
<div class="item">上拉加载功能3</div>
<div class="item">上拉加载功能4</div>
<div class="item">上拉加载功能5