当前位置:网站首页>swiper组件中使用video导致全屏错位
swiper组件中使用video导致全屏错位
2022-07-06 17:50:00 【flym_】
问题: 项目测试过程中,在swiper组件中有是有video,全屏时在安卓上没有任何问题,但在ios上,视频全屏后却发现小程序的navbar导航栏在视屏的上方,导致视频往下移错位,以至于没有全部显示出来。
解决方法: iOS 的 video 组件全屏需要使用 position: fixed 属性。如果 video 的父组件包含 position: relative;position: absolute 等 css 属性( 除 position: static 以外的属性),便会破坏 video 的全屏定位。
因此不要对需要全屏的 video 的任何父组件使用任何 position: relative;position: absolute 等定位属性。
加 codejs
边栏推荐
- Supersocket 1.6 creates a simple socket server with message length in the header
- Js逆向——捅了【马蜂窝】的ob混淆与加速乐
- Share a general compilation method of so dynamic library
- Informatics Orsay Ibn YBT 1172: find the factorial of n within 10000 | 1.6 14: find the factorial of n within 10000
- AI 从代码中自动生成注释文档
- 【芯片方案设计】脉搏血氧仪
- 移植DAC芯片MCP4725驱动到NUC980
- Make Jar, Not War
- Neon Optimization: performance optimization FAQ QA
- Transformation transformation operator
猜你喜欢

MySQL script batch queries all tables containing specified field types in the database

【信号与系统】

让我们,从头到尾,通透网络I/O模型

Byte P7 professional level explanation: common tools and test methods for interface testing, Freeman

免费白嫖的图床对比

ESP Arduino (IV) PWM waveform control output

Wood extraction in Halcon

LeetCode:1175. Prime permutation

云呐|工单管理软件,工单管理软件APP

微信公众号发送模板消息
随机推荐
ClickHouse字段分组聚合、按照任意时间段粒度查询SQL
C语言实例_4
Implementation principle of waitgroup in golang
Match VIM from zero (0) -- Introduction to vimscript
黑马笔记---异常处理
JS reverse -- ob confusion and accelerated music that poked the [hornet's nest]
免费白嫖的图床对比
今日问题-2022/7/4 lambda体中修改String引用类型变量
Yunna | work order management measures, how to carry out work order management
Transplant DAC chip mcp4725 to nuc980
UI control telerik UI for WinForms new theme - vs2022 heuristic theme
[JS] obtain the N days before and after the current time or the n months before and after the current time (hour, minute, second, year, month, day)
ARM裸板调试之JTAG调试体验
Taro applet enables wxml code compression
斗地主游戏的案例开发
What does security capability mean? What are the protection capabilities of different levels of ISO?
接收用户输入,身高BMI体重指数检测小业务入门案例
Failed to successfully launch or connect to a child MSBuild. exe process. Verify that the MSBuild. exe
mysql: error while loading shared libraries: libtinfo. so. 5: cannot open shared object file: No such
Send template message via wechat official account