html - 使用 bootstrap 的 HR 职位
问题描述
想要将这条大小相同的线完全放在查找更多按钮的顶部。此外,我希望最大的初创公司能够向上移动一点。另外,我用红色圆圈突出显示要重新定位的线。
CSS 和 HTML:
body,
html {
width: 100%;
height: 100%;
font-family: 'Montserrat', sans-serif;
background: url(header.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
h1 {
font-size: 3rem;
color: #e2dbdb;
padding: 1em;
}
hr {
border-color: #F05F44;
align-self: center;
border-width: 5px;
max-width: 65px;
}
.buffer {
height: 10rem;
}
.btn {
font-weight: 700;
border-radius: 300px;
text-transform: uppercase;
}
.btn-primary {
background-color: #F05F44;
border-color: #F05F44;
}
.btn-primary:hover {
background-color: #ee4b08;
border-color: #ee4b08;
border-width: 4px;
}
.btn-xl {
padding: 1rem 2rem;
}
<body>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item">
<a class="page-link" href="#" aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
</li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item">
<a class="page-link" href="#" aria-label="Next">
<span aria-hidden="true">»</span>
</a>
</li>
</ul>
</nav>
</body>
解决方案
推荐阅读
- mysql - 在 Symfony 中,find() 方法在具有一对一单向关系的实体上返回 null
- npm - 如何将 npm 参数传递给 dotnet publish?
- python - 要根据随机输入字母在字典中查找单词,这段代码会高效执行吗?
- c# - 为什么 protobuf-net 反序列化的 DataType 对象不显示 Enum 值?
- jenkins - 根据投票结果构建 Jenkins Job
- android - 5 英寸设备从 sw320dp 获取尺寸,而不是 sw480dp
- assembly - 16 位汇编:不能取消引用某些寄存器
- sql - 该索引是否有用?
- javascript - 主线程忙时可以进行垃圾收集吗?
- django-rest-framework - 使用 @api_view FBV 接收 url 参数