Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
位置绝对位置以绝对方式定位元素,相对于其最接近的祖先,所谓的堆叠上下文。
您可以通过将位置设置为静态的任何其他位置来创建此堆叠上下文。
简而言之,尝试设置#changingimages <代码>位置:相对。
#changingimages
#changingImages { position: relative; } .leftRight { position: absolute; right: 0; bottom: 0; }
Position absolute positions the element in an absolute fashion, relative to its closest positioned ancestor with what is called a stacking context.
You can create this stacking context by setting the position to anything but static.
In short, try setting #changingImages to position: relative.
#changingImages
position: relative
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
位置&amp;堆叠上下文
位置绝对位置以绝对方式定位元素,相对于其最接近的祖先,所谓的堆叠上下文。
您可以通过将位置设置为静态的任何其他位置来创建此堆叠上下文。
简而言之,尝试设置
#changingimages
<代码>位置:相对。Position & Stacking Context
Position absolute positions the element in an absolute fashion, relative to its closest positioned ancestor with what is called a stacking context.
You can create this stacking context by setting the position to anything but static.
In short, try setting
#changingImages
toposition: relative
.