阿波罗的战车
一则好像会出现竖向滚动条,二则,一旦content中内容多了……,如果我没体会错,您是这个意思:XML/HTML code?<html><head><title>自适应高度测试</title></head><style>html body {height: 100%;}.header {height: 100px;}.footer {position: fixed;bottom: 0;}</style><body><div class="header">This is header</div><div class="content">This is content</div><div class="footer">This is footer</div></body></html>