当前位置:网站首页>滚动踩坑--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>边栏推荐
- 1323: [example 6.5] activity selection
- Use load_ decathlon_ Datalist (Monai) fast loading JSON data
- How to prepare for the advanced soft test (network planning designer)?
- P2788 math 1 - addition and subtraction
- Network engineer test questions and answers in May of the first half of 2022
- 2022.7.5DAY597
- 2021 summary and 2022 outlook
- 【亲测可行】error while loading shared libraries的解决方案
- Basic introduction of yarn and job submission process
- Unity script generates configurable files and loads
猜你喜欢
![1321: [example 6.3] deletion problem (noip1994)](/img/bd/b605ec7b901079a9ebaca446fad7fb.png)
1321: [example 6.3] deletion problem (noip1994)

VR development optimization
![[installation system] U disk installation system tutorial, using UltraISO to make U disk startup disk](/img/41/3a9450a84291ba04caee65241bce5d.png)
[installation system] U disk installation system tutorial, using UltraISO to make U disk startup disk

软考中级,软件设计师考试那些内容,考试大纲什么的?

Application of OpenGL gllightfv function and related knowledge of light source

Cluster task scheduling system lsf/sge/slurm/pbs based on HPC scenario

【实战】霸榜各大医学分割挑战赛的Transformer架构--nnFormer

Leetcode-304: two dimensional area and retrieval - matrix immutable

Find the root of equation ax^2+bx+c=0 (C language)

Multithreaded asynchronous orchestration
随机推荐
Socket communication principle and Practice
MySQL insert data create trigger fill UUID field value
[homework] 2022.7.6 write your own cal function
Typescript interface inheritance
Realize ray detection, drag the mouse to move the object and use the pulley to scale the object
软考信息处理技术员有哪些备考资料与方法?
2022.7.3DAY595
Get pictures through opencv, change channels and save them
优雅的 Controller 层代码
Common shortcut keys in IDA
Multithreaded asynchronous orchestration
[installation system] U disk installation system tutorial, using UltraISO to make U disk startup disk
ThreadLocal会用可不够
How to get hardware information in unity
使用 load_decathlon_datalist (MONAI)快速加载JSON数据
JS实现链式调用
Multisim -- software related skills
Use of dotween
在线硬核工具
【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)