template v-if=newPatientdiv class=index内容/div /template stylehtml,body {height: 100vh;overflow-x: hidden;overflow-y: hidden;}.index {background-color: #ff9a71;overflow-y: auto;...

<template v-if="newPatient"> <div class='index'> 内容 </div> </template> <style> html,body { height: 100vh; overflow-x: hidden; overflow-y: hidden; } .index { background-color: #ff9a71; overflow-y: auto; height:100vh; position: fixed; top:0; background-repeat: no-repeat; } </style> mounted中再加一句JS代码: document.documentElement.style.overflow='hidden';
沃梦达教程
本文标题为:解决IOS中h5页面拉到最下边会漏浏览器自带的白底


猜你喜欢
- 作为iOS开发,这道面试题你能答出来,说明你基础很OK! 2023-09-14
- 最好用的ios数据恢复软件:PhoneRescue for Mac 2023-09-14
- Android studio实现动态背景页面 2023-05-23
- Android实现轮询的三种方式 2023-02-17
- 详解flutter engine 那些没被释放的东西 2022-12-04
- iOS 对当前webView进行截屏的方法 2023-03-01
- Android MaterialButton使用实例详解(告别shape、selector) 2023-06-16
- Android实现监听音量的变化 2023-03-30
- Flutter实现底部和顶部导航栏 2022-08-31
- SurfaceView播放视频发送弹幕并实现滚动歌词 2023-01-02