Html 相对重叠

Html 相对重叠,html,css,positioning,overlap,Html,Css,Positioning,Overlap,我有三个div。我需要获得这些重叠,但我不能使用绝对定位。我该怎么做? 我的目标是在响应性布局上工作(无固定px值) 设置页边距顶部: #sec { margin-top: -100px; } #third { margin-top: -100px; } 设置页边距顶部: #sec { margin-top: -100px; } #third { margin-top: -100px; } #sec { margin-top: -100px; } #

我有三个div。我需要获得这些重叠,但我不能使用绝对定位。我该怎么做? 我的目标是在响应性布局上工作(无固定px值


设置
页边距顶部

#sec
{
    margin-top: -100px;
}
#third
{
    margin-top: -100px;
}

设置
页边距顶部

#sec
{
    margin-top: -100px;
}
#third
{
    margin-top: -100px;
}

#sec
{
    margin-top: -100px;
}
#third
{
    margin-top: -100px;
}