This question shows research effort; it is useful and clear
-2
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我有一个 div position,absolute我们称之为abs。直接在(不在)该 div 之后,我创建了一个名为footer. Footer没有位置值,尽管我尝试将位置设置relative为相同的结果。我的问题是它footer直接出现在我在我的 div 中的图像之上,abs尽管在那之后被声明了。我认为这与 的绝对定位有关abs,因为我通常定位的 div 的行为与我期望的一样:它们出现在其他 div 的下方。想法?
好的,所以<div id="container"> many stacked absolute divs in here </div><div id="footer">footer stuff</div>将 #container css 设置为所需的高度/最小高度。容器和页脚在流程中,而堆叠的 div 不在。