最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Chrome address bar leave a white space on mobile site - Stack Overflow

programmeradmin6浏览0评论

I have an issue on my mobile site with the address bar of Google Chrome. I have a fixed navbar on my website and at the moment i scroll down and the address bar dissapear, when i open my menu, a white space (size of the address bar) appears at the bottom and i need to scroll up to make the address bar appear thus removing the white space. This is my menu css:

#menu {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: 10000;
  padding: 0;
  background-color: blue;
  overflow-x: hidden;
  overflow-y: auto; 
}

Other web browsers are working fine on mobile, what can i do to get rid of that address bar blank space?

I have an issue on my mobile site with the address bar of Google Chrome. I have a fixed navbar on my website and at the moment i scroll down and the address bar dissapear, when i open my menu, a white space (size of the address bar) appears at the bottom and i need to scroll up to make the address bar appear thus removing the white space. This is my menu css:

#menu {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: 10000;
  padding: 0;
  background-color: blue;
  overflow-x: hidden;
  overflow-y: auto; 
}

Other web browsers are working fine on mobile, what can i do to get rid of that address bar blank space?

Share Improve this question edited Aug 3, 2018 at 16:10 Rick 4,1249 gold badges27 silver badges37 bronze badges asked Feb 22, 2017 at 14:04 Huby03Huby03 8012 gold badges15 silver badges28 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

I have the same problem after upgrading my Chrome. I got it resolved by changing position to fixed.

https://developers.google./web/updates/2016/12/url-bar-resizing

发布评论

评论列表(0)

  1. 暂无评论