gpt4 book ai didi

twitter-bootstrap - Twitter Bootstrap 选项卡 : How to: Increase spacing between tabs

转载 作者:行者123 更新时间:2023-12-04 07:04:15 25 4
gpt4 key购买 nike

我将 ui bootstrap 用于 angular(它使用 twitter bootstrap css)。我能够使选项卡居中,但我不知道如何在选项卡(右或左)之间添加间距(边距)。我尝试添加 margin-right: 100px;在 .nav-tabs > li 但那不起作用。

HTML:

<html>
<body>

<tabbed-Panel class="bottomTabPanel">
<!--<div data-fade="1" ngModel="activeTab" bs-Tabs>-->
<tabs>
<pane ng-repeat="pane in panes" heading="{{pane.title}}" active="pane.active">
<div ng-include src="activeContent()"></div>
</pane>
</tabs>
<!--</div>-->
</tabbed-Panel>
</div
</body>
</html>

CSS

.bottomTabPanel{

position:absolute;
bottom:-12px;
display:block;
background-color:#666666;
padding-left: 75px;
padding-right: 75px;
}
/*Bottom tab panel style: */
.nav-tabs>li>a {
height:73px;
width: 131px;
border: 1px solid transparent;
-webkit-border-radius: 0px 0px 0 0;
-moz-border-radius: 0px 0px 0 0;
border-radius: 0px 0px 0 0;
color: #5261ac;
font-size: 19px;
font-weight:bold;
background-color:#c2c8e4;


}

.nav-tabs>.active>a, .nav-tabs>.active {
color: #ffffff;
cursor: default;
background-color:#ed174f;
border:none;
}
/* center tabs in container */
.nav-tabs > li {
float:none;
display:inline-block;
margin-right: 100px;
}
.nav-tabs {
text-align:center;
}

/* for centering text in the tab*/
.tabbable ul {
display:table-row;
}
.tabbable ul li
{
display: table-cell;
list-style-type: none;
vertical-align: middle;
/*margin left & right here fixed the issue! */
margin-right: 16px;
margin-left: 16px;
}
.tabbable ul li a {
display:table-cell;
vertical-align: middle;
text-align:center;

}

最佳答案

设置.nav-tabs > li > a, .nav-pills > li > amargin-leftmargin-right . margin-right 默认为 2px。

b.e:

    .nav-tabs > li > a, .nav-pills > li > a {margin-left:25px;margin-right:27px;}

关于twitter-bootstrap - Twitter Bootstrap 选项卡 : How to: Increase spacing between tabs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16906642/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com