-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS中弹出键盘后出现fixed失效现象的解决方案 #30
Comments
如果 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
原理很简单,就是定义一个外框把页面包起来,把需要使用
fixed
定位的元素设置成absolute
定位,然后设置外框元素的样式为overflow-y:scroll
即可,下面是实例:假设外框元素为
.wrap
,需要fixed
定位的元素为.position
:DOM
CSS
The text was updated successfully, but these errors were encountered: