How to position div at the bottom of a page

前端 未结 6 1106
小蘑菇
小蘑菇 2020-12-19 00:00

How can I set position of a

to the bottom of page with either CSS or jQuery?

6条回答
  •  一生所求
    2020-12-19 00:38

    I think you can do this:

        html{
          min-height:100%;
          position:relative;
          background-color:red;
        }
        .footer{
          bottom:0;
          position:absolute;
          background-color:blue;
        }
    
      
        
        
      

提交回复
热议问题