How can I position my div at the bottom of its container?

前端 未结 24 2431
广开言路
广开言路 2020-11-22 00:46

Given the following HTML:



        
24条回答
  •  粉色の甜心
    2020-11-22 01:40

     #container{width:100%; float:left; position:relative;}
    #copyright{position:absolute; bottom:0px; left:0px; background:#F00; width:100%;}
    #container{background:gray; height:100px;}

提交回复
热议问题