HTML/CSS 流体网格 : How to overlay div to another div

标签 html css web fluid-layout

我真的很难找到答案。我试图让我的 div: absolute 但它会破坏整个流体网格。我想要的只是将 div 放在背景 div 上。提前致谢!

CSS

#mannequin {
box-sizing: border-box;
position: absolute;
width: 60%;
padding: 0 12px;
margin: 0;
float: left;
overflow: hidden;
}

#products {
clear: both;
position: absolute;
margin-left: 0;
width: 100%;
display: block;
z-index: 10;
}

HTML

<div id="mannequin"><img src="http://tinypic.com/r/29596hh/9"> 
<div id="products"><img src="http://tinypic.com/r/2qw09lc/9">
</div>
</div>

最佳答案

请做一个div position: relative;和其他div使position: absolute;

关于HTML/CSS 流体网格 : How to overlay div to another div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37000446/

相关文章:

php - 深层链接无法正常工作

javascript - 使用 getElementByTagName 检索 b 的值并将其设为整数

php - 如何向php表添加一次性选择按钮,并且选择应该更改按钮的值和数据库值

html - 将 paper 下拉列表 float 在其他内容上方

css - 很难理解 :after selector CSS

javascript - 使用数据属性计算输入字段

html - IFRAME 不会从页面加载内容

css - 带有 vue js 的 flexbox 不工作

css - 当外部 div 增长时,使内部 div 增长高度

javascript - 如果 "webpage not found"则重定向到不同页面?