Bug with CSS -moz-perspective

2019-08-12 03:50发布

问题:

I have a mistake with the perspective property.. If you see this JSFiddle code on Google Chrome (v33) and Mozilla Firefox (v28), I have a difference between them.. I can reproduce this error on Chrome if I comment the code :

-webkit-perspective: 2500px;
-moz-perspective: 2500px;
perspective: 2500px;

How can I have the same result on the both browsers ?

Thank you all for helping and sorry for my bad english.

回答1:

You need to set : position:absolute to #header-cube-container instead of #header-cube.