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

在谷歌浏览器上模拟手机调试字体不能自动变化 要手动刷新 是什么原因 #6

Open
nacysun opened this issue Dec 22, 2016 · 3 comments

Comments

@nacysun
Copy link

nacysun commented Dec 22, 2016

在谷歌浏览器上模拟手机调试字体不能自动变化 要手动刷新 是什么原因

@hbxeagle
Copy link
Owner

这个方案因为是针对手机的,只处理了旋转屏幕,没有处理resize事件,所以需要手动刷新。

@nacysun
Copy link
Author

nacysun commented Jan 6, 2017

那要自动刷新 要怎样设置 求大神指点

@hbxeagle
Copy link
Owner

chrome 上不存在android的font-size的bug,直接将方案3或方案4封装成一个函数,在页面加载的时候执行一次。然后再绑到resize事件上,触发resize的时候调用这个函数就行。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants