是否有任何选项可以将 css :before 添加到 .col 和 .form-groups? 我尝试添加一个新的 css,但它不适用。
模拟如下。
CSS
.fg-steps {
position: relative;
}
.fg-steps:before {
background: black;
width: 30px;
height: 30px;
position: absolute !important;
top: 0;
left: -10px;
}
HTML
<div id="fg_parentStatus" class="form-group fg-steps">
最佳答案
:before 和 :after 规则需要内容/strong> 属性。
关于html - Bootstrap 网格列,表单组 css :before not applying,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25680949/