css3 变换改变绝对子元素的相对元素
我发现在绝对定位的子元素的父元素上设置变换(旋转、倾斜、translateX 等)会使父元素充当子元素的新“位置:相对”。我这里有示例代码:
http://jsfiddle.net/tjrnN/1
我的问题是这是否正常,即设置变换应该为绝对定位的子项建立一个新的坐标系?
如果是这样,有没有办法指定子元素不应包含在父元素的转换中?
I'm finding that setting a transform (rotate, skew, translateX, etc) on an element that is the parent of a child that is absolutely positioned makes the parent act as the new "position:relative" to the child. I have sample code here:
http://jsfiddle.net/tjrnN/1
My question is if this is normal, i.e. setting the transform is supposed to establish a new coordinate system for the absolutely positioned children?
If so, is there a way to specify that the child element should not be included in the parent's transform?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将其移出动画元素?
Move it out of the animated element?