我将以下代码复制粘贴到materialize.min.css文件中:
body { display: flex; min-height: 100vh; flex-direction: column; } main { flex: 1 0 auto; }
Note: We use flexBox to structure our html so that the footer is always on the bottom of the page. It is important to keep the structure of your page within the 3 HTML5 tags: <header>,<main>, <footer>
<header>
<main>
<footer>