Created
February 23, 2019 06:38
-
-
Save magicianShiro/67c2a01014110bbb85d78f8230b5fcb4 to your computer and use it in GitHub Desktop.
safari想点击底部按钮的时候总是会触发底部栏弹出导致点击失败的解决方案
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[参考链接](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