3< div> =>中间< div>重叠上部和下部< div> [英] 3 <div> => middle <div> overlaps upper and lower <div>
本文介绍了3< div> =>中间< div>重叠上部和下部< div>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何重叠3 < div>
,以使中间的< div>
另外两个。
How can I overlap 3 <div>
so that the middle <div>
is on top of the other two.
我试过了:
I've tried:
#middle {
margin-top: -10px;
margin-bottom: -10px;
}
但是,只有重叠上部而非下部的作用< div>
...
But that only has the effect of overlapping the upper but not the lower <div>
...
推荐答案
您需要使用css position
检查工作代码@ jsfiddle
you need to use css position
check the working code @jsfiddle
这篇关于3< div> =>中间< div>重叠上部和下部< div>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文