How can I force my footer to stick to the bottom of any page in CSS?

前端 未结 10 1049
谎友^
谎友^ 2020-12-16 10:52

This is my code:

#footer {
   font-size: 10px;
   position:absolute;
   bottom:0;
   background:#ffffff;
}

I\'ve no idea what is wrong with

10条回答
  •  情话喂你
    2020-12-16 11:20

    #footer { clear:both; position:fixed; width:100%; height:50px; bottom:0; background:black;}
    

提交回复
热议问题