当前位置:网站首页>滚动踩坑--UNI_APP(八)
滚动踩坑--UNI_APP(八)
2022-07-07 08:49:00 【wax9092】
需求场景:很普通的一个区域滚动
语法:
<style>
.card{
overflow: auto;
}
</style>
H5是没有问题的,但是App 却不生效
查阅官方文档:scroll-view | uni-app官网
得知得使用相应的滚动组件,为了更好兼容各个端,那就直接使用官方的区域滚动组件,因此,只需要在滚动的DOM结构外,使用scroll-view组件即可;
<scroll-view :scroll-top="0" scroll-y="true" style="max-height: 480rpx;" >
XXXXX
</scroll-view>
边栏推荐
- A simple example of delegate usage
- [machine learning 03] Lagrange multiplier method
- Is the gold content of intermediate e-commerce division in the soft exam high?
- How to successfully pass the senior system architecture designer in the second half of the year?
- SQL Server 知识汇集11 : 约束
- 【推薦系統 01】Rechub
- Leetcode-304: two dimensional area and retrieval - matrix immutable
- Common shortcut keys in IDA
- Those confusing concepts (3): function and class
- Network engineer test questions and answers in May of the first half of 2022
猜你喜欢
随机推荐
2022.7.4DAY596
1321: [example 6.3] deletion problem (noip1994)
高级软考(网络规划设计师)该如何备考?
Is the soft test intermediate useful??
软考中级电子商务师含金量高嘛?
Introduction to shell programming
What is an intermediate network engineer? What is the main test and what is the use?
Cluster task scheduling system lsf/sge/slurm/pbs based on HPC scenario
【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
软考中级,软件设计师考试那些内容,考试大纲什么的?
Typescript interface inheritance
中级软件评测师考什么
Socket communication principle and Practice
Schnuka: machine vision positioning technology machine vision positioning principle
多线程-异步编排
P1223 queuing for water /1319: [example 6.1] queuing for water
Is the gold content of intermediate e-commerce division in the soft exam high?
2021 summary and 2022 outlook
IIC Basics
PHP \ newline cannot be output