問題:
What's the best way to make an element of 100% minimum height across a wide range of browsers ?在各種瀏覽器中製作 100% 最小高度的元素的最佳方法是什麼?
In particular if you have a layout with a header
and footer
of fixed height
,特別是如果您的佈局具有固定height
的header
和footer
,
how do you make the middle content part fill 100%
of the space in between with the footer
fixed to the bottom ?如何使中間內容部分填充100%
之間的空間,並將footer
固定在底部?
解決方案:
參考一: https://en.stackoom.com/question/6Z4參考二: https://stackoom.com/question/6Z4