奇怪的定位元素 [英] Weird positioning elements
问题描述
我有一些奇怪的东西,我建立一个简单的parralax滚动旋转信息框。
我在中心做了一个正方形,里面的元素在定位方面非常奇怪。
I have something really weird, im building a simple parralax scrolling rotating infobox. I made a square in the center and the elements inside act really weird with positioning.
但是当我调整窗口大小时,一切都进入正确的位置。
我完全不知道为什么或这是怎么回事。任何人都有想法?
But when I resize my window, everything pops into the right positioning. I have absolutely no idea why or how this is happening. Anyone has an idea?
问候,Chris。
链接: http://62866.glr-imd.nl/test.html
(滚动查看旋转)
Link : http://62866.glr-imd.nl/test.html (scroll to see it rotate)
小提琴: http://jsfiddle.net/rW9Dv/滚动元素在此处不起作用。
Fiddle: http://jsfiddle.net/rW9Dv/ Scrolling element does not work in there.
position:fixed;
也许定位与JS的固定冲突?
Maybe position fixed conflicts with the JS?
推荐答案
您的 margin-left
上的#textveld_2
尝试将其从-250像素更改为-249像素,当我尝试使用它时,它会弹出到正确的位置。
Try changing it from -250px to -249px, it pops into the right place for me when i tried this.
这篇关于奇怪的定位元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!