代码如下
html:
wxss:
.image{
width: 100%;
}
.content{
font-family: 微软雅黑;
color: #37321e;
bottom:10%;
margin-bottom: 5px;
width: 100%;
text-align: center;
font-size: 25px;
position: fixed;
}
image是长图,想要实现长图拉到底部在显示出content,请问如何实现
/**
页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
小程序自带的方法 触底函数 你这个页面就这样的话 把显示隐藏的方法放进去就好了
绑定一个触底事件,改变content的状态
小程序视图容器bindscrolltolower,监听纵向位置,滚动到底部/右边,会触发 scrolltolower 事件