Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在写我的主页,页脚显示在主要部分的顶部。
我尝试添加position:relative,position:absolute;bottom:0;但没有奏效。
position:relative
position:absolute;bottom:0;
height从此类中的 CSS 样式中删除:这样.login它将.homeArticle始终适合底部。
height
.login
.homeArticle