html - 如何从 UI-Bootstrap Angular Tab 指令中删除下边距?

标签 html css angularjs angular-ui-bootstrap

找到 ui.bootstrap.tabs 指令 here在显示其内容之前具有继承边距。

HTML:

<uib-tabset active="activeJustified" justified="false" id="tabSet" style="background-color: red">
    <uib-tab index="0" heading="Assessment" class="uib-tab">
        <p style="background-color: green">TEST</p>
    </uib-tab>
    <uib-tab index="1" headin[![enter image description here][2]][2]g="SJ" class="uib-tab"></uib-tab>
    <uib-tab index="2" heading="Long Justified" class="uib-tab"></uib-tab>
</uib-tabset>

<uib-tabset>background-color: red以显示此边距。

我的 CSS 不会阻止它。 (也许这是我不知道的属性?)

.uib-tab {
margin: 0px;
padding: 0px;
}

.uib-tabset {
margin: 0px;
padding: 0px;
}

有什么想法可以尝试吗?谢谢!

最佳答案

如果您尝试应用的 css 位于正确的元素上,我建议增加选择器的特异性,例如“#tabSet .uib-tab”,或使用 !important。

关于html - 如何从 UI-Bootstrap Angular Tab 指令中删除下边距?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37470815/

相关文章:

html - 盒子模型在菜单上的位置和流程(绝对位置)

javascript - 如何使用保存对话框将表单值保存到 JSON?

javascript - AngularJS - 如何强制范围输入的 ng-model 为空?

html - 使用 appearance none css 属性设置选择元素的样式

html - 将中心 DIV 列置于左右浮动列之间的位置?

angularjs - Typescript + Angular "controller as"Sidewaffle 模板开箱即用

JavaScript - ui-select 和对象

angularjs - 指令 'accordion' 要求的 Controller 'accordionGroup' 在 ui-bootstrap 中找不到错误

html - joomla 3.3 css 模块覆盖不起作用

php - 将行数调整为 Form::Textarea Laravel 5