问题:
I need assistance with overlaying one individual div
over another individual div
. 我需要一个个人div
覆盖另一个个人div
。
My code looks like this: 我的代码如下所示:
<div class="navi"></div>
<div id="infoi">
<img src="info_icon2.png" height="20" width="32"/>
</div>
Unfortunately I cannot nest the div#infoi
or the img
, inside the first div.navi
. 不幸的是,我无法将div#infoi
或img
嵌套在第一个div.navi
。
It has to be two separate div
s as shown, but I need to know how I could place the div#infoi
over the div.navi
and to the right most side and centered on top of the div.navi
. 如图所示,它必须是两个单独的div
,但是我需要知道如何将div#infoi
放在div.navi
,最右侧并居中于div.navi
顶部。
解决方案:
参考一: https://stackoom.com/question/CL8X/如何将一个div覆盖在另一个div上参考二: https://oldbug.net/q/CL8X/How-to-overlay-one-div-over-another-div
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4319682