我添加了一个 Bootstrap 类,我想删除背景颜色并为预定义类添加不透明度。 是否有可以轻松完成此操作的功能?
<div class="btn-group ">
<a class="btn btn-sm btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-info-circle"></i>
</a>
<div class="dropdown-menu dropdown-menu-right">
<ul>
<li class="dropdown-item"><a class="btn btn-sm btn-primary" title="Update patient info">Phone-Number</a></li>
<li class="dropdown-item"><a class="btn btn-sm btn-primary"title="Update patient info">Patients Details</a></li>
</ul>
</div>
</div>
Note:
when i inspect phone number it gives me background white color and on disabling it gives the desired result.
now, how can i add that to my internal css so that its remains like that
最佳答案
应用于标签 ID 的样式将优先于应用于类的样式。
给你要设置样式的标签添加一个id,给id添加css。如果您已经为某个类编写了样式,请向它们添加 ID 选择器。
内联 css 也可以,但不推荐。
关于css - 我怎样才能只继承 Bootstrap 预定义类的几个属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55790934/