Vue:uni-app学习(八)--上滑透明渐变吸顶 ...
方法一:监听滚动事件 .scrollContent .bind touchmove ,function e varwinHeight window .scrollTop document.getElementById opacityHeader .style.opacity winHeight . document.getElementById centerBg .style.opacity w ...
2020-04-29 09:37 2 470 推荐指数:
Vue:uni-app学习(八)--上滑透明渐变吸顶 ...
(个人记录 不做参考)wepy框架非原生 wxml: js: js 思路:数据初始化加载完成 获取滚动元素的高度;获取tab栏距离顶部的高度;滚动距离 > tab距离顶部高度 定位tab元素;滚动页面时 滚动距离和每个模块的高度 ...
<html> <head> <title>放置文章标题</title> <meta http-equiv="Content-Type" conte ...
...
<template> <view class="about"> <view class="lis"> <view class=" ...
html 元素: 绑定事件: ...
...