使用Bootstrap CSS Class如何增加卡片图块

问题描述 投票:0回答:1

我正在使用 form.IO,它只有一个用于使用 Bootstrap 自定义 CSS 类来定位控件的字段。没有

syle
标签 没有 .control{font-size:20px}

您可以使用多个类,并用空格分隔 例如:

card-title mb-2 text-muted

我只想将卡片标题设置为

h2
如果我尝试
h2
,这会将控件中的
all
文本设置为
h2

我尝试了

h2 card-title
card-title h2
希望仅针对卡片标题,但这不起作用

如何使用 Bootstrap 自定义 CSS 类将卡片标题设置为 h2 或增加字体大小

谢谢

bootstrap-4
1个回答
0
投票

我用这个让它工作

.lb-md {
  font-size: 19px;
  .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] {
    position: relative;
  }
  .radio + .radio, .checkbox + .checkbox {
    margin-top: -10px;
  }
  label {
    margin-bottom: 0 !important;
  }
  .text-muted, .help-block {
    font-size: 16px;
  }
  .fa {
    font-size: 1.75rem !important;
  }
}
© www.soinside.com 2019 - 2024. All rights reserved.