简体   繁体   中英

CSS with fixed header and footer

_______________________________________________
|                                             |
|             Header                          |
|_____________________________________________|
         |                           | 
         |                           |
         |                           |
         |          Content          |
         |                           |
         |                           |
         |                           |
         |                           |         
_______________________________________________
|                                             |
|             Footer                          |
|_____________________________________________|

Hello, I want to make a layout like the idea above. The idea is that if you have little content the footer to stay down there, stuck.

My problems are:

  • I can not leave my Header width 100% and leave the footer on the screen when you have little content as it travels
  • When using IE, ruins everything

http://jsfiddle.net/mtsys/8Yek8/

What I got the idea from your issue is if you use position:fixed in css for footer and make it bottom:0; it will work. Hope this is helpful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM