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.
元素“#bottom-nav”位于顶部。我刚刚在 CSS-board 上创建了这个,你可以在那里查看 HTML 和 CSS
CSS 桌面
它位于页面的最后,并具有“margin_top”属性。
仅当您将结果窗口调整为全屏时,PS 元素才可见
更改position: absolute;为position: relative;
position: absolute;
position: relative;
absolute做它的意思。它将其固定到该位置。其他相关元素,例如底部导航,将简单地忽略任何标记为absolute.
absolute
设置#bottom-nav为position:absolute和。bottom:0_ width:100%您需要调整边距和/或填充。
#bottom-nav
position:absolute
bottom:0
width:100%