ios部分机型在微信浏览器下底部产生白线的问题怎么解决?

问题场景

一般出现在有background-image的h5内,不管是满屏还是滑动,底部都会有一条白线。plus机型比较有可能出现这个问题。

问题截图

图片描述

代码

//背景图部分
poset(width, height, top, left, index)
  position absolute
  width width
  height height
  top top
  left left
  z-index index

#wrap
  poset 100% 100% 0 0 unset
  display table
  background-image url(../img/bg.jpg)
  background-position center center
  background-size cover

搜索不到相关资料,想知道这样的成因和解决方案~

阅读 3.9k
1 个回答

高度问题吗? 把height设置成 height:100vh试试看

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题