javascript - Ask a question about web layout?
世界只因有你
世界只因有你 2017-05-19 10:10:18
0
3
382

Describe, for the page,

内容少得不足以产生滚动条的时候,footer落在最底部面,
当内容变多,页面产生滚动条时,footer要处于内容的最后,即滚动到最底部才能看见

I know one way is to use negative margin-top and positive padding-bottom, but it doesn’t feel flexible enough..

Is there any good way to achieve this?


This is my answer:
Pure css
Because I mainly use it on the mobile side, it should be compatible....
https://jsfiddle.net/BoomBang...

世界只因有你
世界只因有你

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!