Backface-Visibility Not Working Properly in Firefox (Works in Safari)

社会主义新天地 提交于 2019-11-26 14:43:39

问题


I'm having a problem with the back face-visibilty property. It works how I want it to in Safari/Chrome, but for some reason it's not working correctly in Firefox.

When the box flips, I get a mirror image of the front face.


回答1:


This bug has been acknowledged by Mozilla.

The fix is to add transform: rotateX(0deg) to the front and back objects.

Adding backface-visiblity:hidden on the container, as suggested by @yalia, makes the back unresponsive in Chrome, hence that fix should be avoided.

Here's a fiddle with the fix.




回答2:


Try putting 'backface-visibility:hidden' both on the object and its container. This is what worked for me with this bug



来源:https://stackoverflow.com/questions/9604982/backface-visibility-not-working-properly-in-firefox-works-in-safari

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!