Bug with CSS -moz-perspective

偶尔善良 提交于 2019-12-11 11:02:05

问题


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.



来源:https://stackoverflow.com/questions/22775127/bug-with-css-moz-perspective

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