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

记Chrome移动端浏览器渲染问题 #13

Open
Hancoson opened this issue Apr 25, 2017 · 0 comments
Open

记Chrome移动端浏览器渲染问题 #13

Hancoson opened this issue Apr 25, 2017 · 0 comments

Comments

@Hancoson
Copy link
Owner

Hancoson commented Apr 25, 2017

前一段时间在开发H5页面中遇到一个奇葩的问题,在Chrome浏览器中通过改变页面状态,在其他浏览器中测试是正常的,但是在Chrome中页面中按钮的背景色渲染不出来,先来看看问题到底长什么样:
问题重现
c

查了一下,后来发现这个是渲染引擎的 bug 导致的问题。后来在网上查了一下,给当前元素css添加了transform: translateZ(0);,使用 3D 加速将这个渲染层隔离渲染。果然完美解决了。还是比较简单的。
zx

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

1 participant