css - div at incorrect position on Firefox

元气小坏坏 提交于 2020-01-05 04:30:53

问题


I'm making a card with css animations, and on Chrome/Safari it works great, but on Firefox one of the divs is getting out of its position. Open this fiddle on Chrome/Safari and on Firefox to see what is going on. Does anybody know a fix/workarround to this?


回答1:


I managed to get Firefox to play nicer by adding

.perspective {
    ...
    position: relative;
}

That seems to specify the object to which the left side is the absolutely positioned. It must differ by default between Webkit and Firefox.

Unfortunately it looks like there's a timing issue with it now, but at least you're one step closer!

Cool looking effect nonetheless XD!



来源:https://stackoverflow.com/questions/10881690/css-div-at-incorrect-position-on-firefox

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