CSS 底部固定

底部固定的兩種理解: 一、無視content多高,footer始終固定在底部,隨着瀏覽器窗口高度的減少會覆蓋content內容; 二、在乎content高度,當瀏覽器窗口高度小於或等於content高度時,footer不去覆蓋content。 相應解決方案: 一、footer固定定位: footer{ position: fixed; bottom: 0; left: 0; } 二、footer絕
相關文章
相關標籤/搜索