【发布时间】:2020-08-01 16:02:56
【问题描述】:
如何使卡片标题在引导程序 4 上没有边框半径?我已经实现了这个,但是卡头的背景颜色与卡头重叠,因此卡头仍然有边框半径
.card-header {
height: 50px;
background-color: #000;
border-bottom-color: #fff;
border-top: none;
border-radius: 0;
}
【问题讨论】:
-
请看小提琴jsfiddle.net/8h9mj7f8 它没有辐射。如果我做错了什么就改变。
-
@AkiraSuzuki。我在 Bootstrap 4 默认文件中看到了它。为什么它在 bootstrap 4 中实现? .card-header:first-child {border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0; }
-
我认为引导程序支持“卡片”类。如果你不喜欢,你可以定义“mycard”类。
-
我刚刚将它设为border-radius: 0 !important
标签: html css twitter-bootstrap border bootstrap-4