【发布时间】:2019-05-09 13:21:54
【问题描述】:
我正在尝试创建带有固定菜单和页脚面板以及创建浏览器滚动的内部 div(根据需要)的 stackoverflow 样式的应用程序。
我只是想问一下下面的代码是否正确地实现了上述场景? fixed-top/fixed-bottom 是 Bootstrap4 中的样式。我看到我的方法中必须在我的 HTML/样式代码中使用固定常量,可以吗?
<body>
<div>
<div class="fixed-top" style="height: 50px; border: 2px solid black">
Header
</div>
<div>
<div style="height: 50px"></div>
(1) The protection of natural persons in relation to the processing of personal data is a fundamental right. Article 8(1) of the Charter of Fundamental Rights of the European Union (the ‘Charter’) and Article 16(1) of the Treaty on the Functioning of
the European Union (TFEU) provide that everyone has the right to the protection of personal data concerning him or her.
<div style="height: 50px"></div>
</div>
<div class="fixed-bottom" style="height: 50px; border: 2px solid black">
Footer
</div>
</div>
</body>
【问题讨论】:
-
请提供一些 CSS 来理解这个问题。
标签: html css bootstrap-4 fixed