Css转换改变ui-bootstrap uib-tabs

时间:2017-05-08 21:51:08

标签: css css3 angular-ui-bootstrap

我有以下css:

.tabstyle {
    color: #ffffff;
    font-weight: bold;
    outline: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    background: #C8DEE9;
    box-shadow: inset 0 -3px 3px rgba(0, 0, 0, 0.05);
    content: '';
    -webkit-transform: perspective(5px) rotateX(0.93deg) translateZ(-1px);
    transform: perspective(5px) rotateX(0.93deg) translateZ(-1px);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    font-family: "Raleway", sans-serif !important;
    font-style: normal;
    margin: 0;
}

然而,当这个呈现时,标签看起来像预期的那样,但是文字是倾斜的,我想我可以做类似的事情:

.nav-tabs li a {
    width: 200px;
    font-size: 18px;
    line-height: 2;
    **transform: rotateX(-0.93deg)**
    font-style: normal !important;
    text-align: center;
    font-family: "Times New Roman", Georgia, Serif;
    margin: 0;
}

但是没有,我如何去除结果文本?

更新

enter image description here

更新#2:

 <uib-tabset active="activeTab" >
            <uib-tab index="$index + 1" classes="tabstyle" ng-repeat="tab in tabData" ng-if="!tab.disabled" select="changeTab(tab.route)">
                <uib-tab-heading>
                    <span class="material-icons {{tab.icon}}" style="vertical-align: middle"></span> {{tab.heading}}
                </uib-tab-heading>

                <!--<div ng-include="tab.content"></div>-->
            </uib-tab>
        </uib-tabset>

0 个答案:

没有答案