码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-06-03 17:12:44      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:blog   position   test   style   border   gre   一个   red   body   

<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的底部

标签:blog   position   test   style   border   gre   一个   red   body   

原文地址:https://www.cnblogs.com/max-hou/p/13038661.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!