I usually use:
position: absolute;
height: 100%;
And on the outer div:
position: relative;
min-height: 100%;
Using static positioning doesn't work, because the browser needs the outer div's height to calculate the inner div's height. But it doesn't know the outer div's height until it has calculated the inner div's...
However, my solution can't be used in many situations. Maybe someone else has a better one.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…