Skip to content

Instantly share code, notes, and snippets.

@magicianShiro
Created February 23, 2019 06:38
Show Gist options
  • Save magicianShiro/67c2a01014110bbb85d78f8230b5fcb4 to your computer and use it in GitHub Desktop.
Save magicianShiro/67c2a01014110bbb85d78f8230b5fcb4 to your computer and use it in GitHub Desktop.
safari想点击底部按钮的时候总是会触发底部栏弹出导致点击失败的解决方案
[参考链接](https://www.eventbrite.com/engineering/mobile-safari-why/)
在按钮元素上加上如下属性
/* Allows content to fill the viewport and go beyond the bottom */
height: 100%;
/* Allows you to scroll below the viewport; default value is visible */
overflow-y: scroll;
/* To smooth any scrolling behavior */
-webkit-overflow-scrolling: touch;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment