当前位置:网站首页>滚动踩坑--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>
边栏推荐
- What is an intermediate network engineer? What is the main test and what is the use?
- Applet jump to H5, configure business domain name experience tutorial
- P1223 queuing for water /1319: [example 6.1] queuing for water
- “梦想杯”2017 年江苏省信息与未来小学生夏令营 IT 小能手 PK 之程序设计试题
- Records on the use of easyflash v3.3
- Pre knowledge reserve of TS type gymnastics to become an excellent TS gymnastics master
- Use load_ decathlon_ Datalist (Monai) fast loading JSON data
- 施努卡:机器视觉定位技术 机器视觉定位原理
- BUUCTF---Reverse---reverse1
- 施努卡:机器视觉定位技术 机器视觉定位原理
猜你喜欢
ArrayList线程不安全和解决方案
IO model review
[OneNote] can't connect to the network and can't sync the problem
使用Tansformer分割三维腹部多器官--UNETR实战
软考中级,软件设计师考试那些内容,考试大纲什么的?
路由器开发知识汇总
2022年上半年5月网络工程师试题及答案
seata 1.3.0 四种模式解决分布式事务(AT、TCC、SAGA、XA)
Différences entre les contraintes monotones et anti - monotones
Prototype and prototype chain
随机推荐
2022.7.6DAY598
[machine learning 03] Lagrange multiplier method
[daiy5] jz77 print binary tree in zigzag order
Unity script generates configurable files and loads
优雅的 Controller 层代码
Prototype and prototype chain
SQL Server knowledge gathering 9: modifying data
Gym installation pit records
Summary of router development knowledge
Arduino receives and sends strings
【实战】霸榜各大医学分割挑战赛的Transformer架构--nnFormer
[actual combat] transformer architecture of the major medical segmentation challenges on the list --nnformer
I'd rather say simple problems a hundred times than do complex problems once
软考信息处理技术员有哪些备考资料与方法?
Applet jump to H5, configure business domain name experience tutorial
【推薦系統 01】Rechub
Multisim -- software related skills
【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
How to successfully pass the senior system architecture designer in the second half of the year?
关于easyflash v3.3使用过程的记录