Skip to content
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

开发过程中遇到了哪些移动端兼容问题?你是怎么解决的? #930

Open
pwstrick opened this issue Apr 17, 2020 · 1 comment
Labels
前端 包含所有不属于其它类别的题目

Comments

@pwstrick
Copy link
Owner

开发过程中遇到了哪些移动端兼容问题?你是怎么解决的?

@pwstrick pwstrick added the 前端 包含所有不属于其它类别的题目 label Apr 17, 2020
@pwstrick
Copy link
Owner Author

1、click事件300ms的延迟,点透问题。
解决方式:fastclick库、zepto的tap事件、绑定touchstart事件。

2、在文本框中输入内容时,软键盘将页面顶上,页面不回弹。
解决方式:绑定文本框的blur事件,并添加代码。

window.scroll(0, 0);

3、fixed定位问题,在iOS下fixed元素在软键盘弹出后,会影响其定位。
解决方式:改成absolute定位。

4、部分Android手机,当使用弹性盒布局时,子元素无效。
解决方式:将行内元素改成块元素。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
前端 包含所有不属于其它类别的题目
Projects
None yet
Development

No branches or pull requests

1 participant