当前位置:网站首页>微信小程序禁止页面左右滑动
微信小程序禁止页面左右滑动
2022-08-09 14:55:00 【写的都是BUG】
小程序禁止页面左右滑动
1、页面中view设置width:100%之后,页面右边会多出一块白区域,并且可以左右滑动,解决方法是给这个view加一个box-sizing:border-box;
2、直接给最外层的view设置一个overflow-x:hidden; //裁剪 div 元素中内容的左/右边缘 - 如果溢出元素的内容区域的话进行隐藏
3、在json文件里面加 "disableScroll": true
4、给page一个弹性盒子
page {
width: 100%;
display: flex;
}
然后将page下面的根元素盒子宽度设为100%,overflow: hidden
.bd {
width: 100%;
overflow: hidden;
}
这样就不会出现左滑右滑出现白屏现象了
边栏推荐
- 为什么要学编译原理
- C写菜单指令的快捷方法
- 防关联浏览器对亚马逊测评有多重要?
- bin文档读写
- For programming trading, focusing on forecast or on countermeasures?
- 对导入的 excel 的时间的处理 将excel表中的时间,转成 标准的时间
- Matlab修改Consolas字体
- More than pytorch from zero to build neural network to realize classification (training data sets)
- 写在光学之前--振动和波
- Analysis of the common methods and scopes of the three servlet containers
猜你喜欢
随机推荐
What are the misunderstandings about the programmatic trading system interface?
6大论坛,30+技术干货议题,2022首届阿里巴巴开源开放周来了!
众所周知亚马逊是全球最大的在线电子商务公司。如今,它已成为全球商品种类最多的在线零售商,日活跃买家约为20-25亿。另一方面,也有大大小小的企业,但不是每个人都能赚到刀! 做网店的同学都知道,
How to List < Map> grouping numerical merge sort
小型项目如何使用异步任务管理器实现不同业务间的解耦
OpenCV简介与搭建使用环境
为什么要学编译原理
个人域名备案详细流程(图文并茂)
响应式布局总结
(精中求精) rem适配布局
What are the implications of programmatic trading rules for the entire trading system?
Seize the opportunity of quantitative trading fund products, and quantitative investment has room for development?
[Mysql]--Transaction, transaction isolation level, dirty read, non-repeatable read, phantom read analysis
大咖说·对话生态|当Confluent遇见云:实时流动的数据更有价值
Different compilers, different modes, impact on results
【小白必看】初始C语言(上)
How to achieve long-term benefits through the Tongdaxin quantitative trading interface?
怎么用VS+Qt创建新项目
encapsulation of strlen(), strcpy(), strncpy(), strcat(), strncat(), strcmp(), strncmp() functions
工作不等于生活,但生活离不开工作 | 2022 年中总结








