html - bootstrap4 中不显示边框?请检查下面给出的代码
问题描述
这是我的一段代码class="card border-primary-left shadow h-100 py-2"当我尝试运行此代码时,边框不显示。
<div class="container-fluid mt-2"> <div class="col-xl-3 col-md-6 mb-4"> <div class="card border-primary-left shadow h-100 py-2"> <div class="card-body"> <div class="row no-gutters align-items-center"> <div class="col mr-2"> <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Earnings (Monthly)</div> <div class="h5 mb-0 font-weight-bold text-gray-800">$40,000</div> </div> </div> </div> </div> </div> </div>
解决方案
Bootstrap中没有border-primary-left
类。请参阅文档:https ://getbootstrap.com/docs/4.4/utilities/borders/
由于.card
已经有边界,它将是:
card border-primary border-bottom-0 border-right-0 border-top-0
推荐阅读
- python - BeautifulSoup:从元素中提取属性?
- button - JavaFX - 从图标创建按钮
- android - 如何使用 Branch.io 链接打开 Facebook 页面
- angular - 在 Angular 2 中作为方法传递的事件侦听器回调中未定义对象
- angular - 在模板驱动的表单中显示多个“mat-error”验证
- json - 如何将 GCE 容器 VM 中的 JSON 记录到 Stackdriver?
- javascript - 如何使用 Google 联系人 api v3 创建新联系人 - 使用 javascript
- android - 通知 BigPictureStyle 在 6.0 之前和之后的设备上扩展
- reactjs - webpack-dev-server 运行失败,出现 validateSchema 错误
- google-app-engine - 正确地将仅 HTTPS 的自定义域分配给 flex env