how to make DIV height 100% between header and footer
问题 Is there a way to setup a layout so that the header is 50px, body is 100% and footer is 50px? I would like the body to use up the entire viewing area at minimum. I would like to have the footer and header to be on the screen at all times 回答1: I created an example in jsfiddle: UPDATED JsFiddle: http://jsfiddle.net/5V288/1025/ HTML: <body> <div id="header"></div> <div id="content"><div> Content </div></div> <div id="footer"></div> </body> CSS: html { height: 100%; } body { height:100%; min