我试图在Bootstrap 4卡片的周围添加更粗的边框。虽然应该变得更厚,但没有任何反应。以下是我的代码片段:
我的CSS代码如下:
<div class="container">
<div class="row">
<div class="col-md-6 col-lg-3">
<div class="card h-100">
<img src="img/html.jpg" alt="HTML" class="card-img-top " style="display: block">
<div class="card-block">
<h3 class="card-title"> Projects </h3>
<p class="font-weight-light"> hello world hello worldhello worldhello worldhello worldhello world</p>
<form action="https://www.w3schools.com/html/">
<button type="submit" class="btn btn-danger btn-lg btn-block">Learn More</button>
</form>
</div>
</div>
</div>
我的CSS代码如下:
.card {
border-style: 5px solid black;
padding-bottom: 3%;
}
.row {
padding-bottom: 15%;
}
有什么我可以做来达到最终结果吗?
谢谢。