如何让一个DIV固定在另一个DIV的底部

Posted 麦克斯-侯的博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何让一个DIV固定在另一个DIV的底部相关的知识,希望对你有一定的参考价值。

<html>
<head>
<title>Test</title>
</head>
<body>
<div id="div1" style="border:1px solid red; width:500px; position:relative; height:500px;">
1111111

<div id="div2" style="border:1px solid green; width:300px; height:200px; position:absolute; bottom:0px;">2222222222</div>

</div>
</body>
</html>

转载至https://www.cnblogs.com/chaixs/p/10574421.html

以上是关于如何让一个DIV固定在另一个DIV的底部的主要内容,如果未能解决你的问题,请参考以下文章