【发布时间】:2018-06-30 22:28:56
【问题描述】:
我正在使用 Bootstrap 4 创建登录页面。 使用 Bootstrap 的容器的最大宽度似乎是 1140px? 我的显示器现在是 1920px。我是否必须将 bootstrap 的值覆盖为 1920px 才能使其支持该尺寸的显示器?
这是我正在使用的代码,我想将登录表单的内容居中(代码仅用于测试以使内容居中):
<body>
<div class="container h-100 d-flex justify-content-center">
<div class="jumbotron my-auto">
<h1 class="display-3">Hello, world!</h1>
</div>
</div>
</body>
甚至对于更大的显示器,我是否应该将尺寸增加到高得离谱的尺寸(例如 999999 像素)以支持它们?
感谢您的任何反馈!
【问题讨论】:
标签: bootstrap-4