2015-10-16 39 views
3

我找不出如何隱藏.tab-pane的重疊邊框。我試圖剪裁它,但它仍然可見。如何將內部邊框添加到引導3透明背景的導航標籤?

有誰知道任何可以隱藏下邊框的jQuery插件嗎?

請看底部的小提琴。

enter image description here

HTML

<section id="content" class="container"> 
<div class="row"> 
    <div class="tab-forms col-md-12"> 
     <!-- Nav tabs --> 
     <ul class="nav nav-tabs pull-right" role="tablist"> 
      <li role="presentation" class="active"> 
       <a href="#home" aria-controls="home" role="tab" 
                 data-toggle="tab">SIGN UP</a></li> 
      <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">SIGN 
       IN</a> 
      </li> 
     </ul> 
     <div class="clearfix"></div> 
     <!-- Tab panes --> 
     <div class="tab-content"> 
      <div role="tabpanel" class="tab-pane active" id="home"> 
       <div class="form-border"> 

       </div> 
      </div> 
      <div role="tabpanel" class="tab-pane" id="profile"> 
       <div class="form-border"> 

       </div> 
      </div> 
     </div> 
    </div> 
</div> 
</section> 

CSS

body { 
    background: #155C91; 
    -webkit-background-size: cover; 
    -moz-background-size: cover; 
    -o-background-size: cover; 
    background-size: cover; 
    padding-top: 88px; 
    padding-bottom: 20px; 
} 
.tab-forms .nav-tabs { 
    border-bottom: 0; 
} 
.tab-forms .nav-tabs li.active a { 
    background: rgba(255, 255, 255, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0); 
    border-bottom: 0; 
    margin-bottom: 1px; 
    -webkit-clip-path: polygon(0px 0px, 144px 0px, 144px 81px, 0px 81px); 
    /*Chrome,Safari*/ 
    /*Firefox*/ 
} 
.tab-forms .nav-tabs li.active a:before { 
    content: ""; 
    width: 90%; 
    height: 55px; 
    top: 8px; 
    left: 5%; 
    position: absolute; 
    border: 1px solid #fff; 
} 
.tab-forms .nav-tabs li.active a:after { 
    border-bottom: 1px solid #fff; 
    content: ""; 
    width: 127px; 
    height: 55px; 
    top: 8px; 
    left: 7px; 
    position: absolute; 
} 
.tab-forms .nav-tabs li a { 
    margin-right: 0; 
    -webkit-border-radius: 0; 
    -moz-border-radius: 0; 
    border-radius: 0; 
    background: rgba(255, 255, 255, 0.1); 
    width: 144px; 
    text-align: center; 
    font-size: 18pt; 
} 
.tab-forms .nav-tabs li a:before { 
    content: ""; 
    width: 80%; 
    height: 25px; 
    top: 8px; 
    left: 11%; 
    position: absolute; 
    border: 1px solid #fff; 
} 
.tab-forms .tab-content { 
    padding: 8px; 
    min-height: 100px; 
    background: rgba(255, 255, 255, 0.2); 
} 
.tab-forms .tab-content .tab-pane { 
    border: 1px solid #ffff00; 
    min-height: 100px; 
} 
rect { 
    fill: red; 
} 

http://jsfiddle.net/52VtD/12901/

https://jsfiddle.net/52VtD/12908/

+0

集'底部邊框:無;''爲.TAB-形式.nav-標籤li.active一個:: after' – vivekkupadhyay

+0

我這樣做,它只是表明。小提琴上的.tab-pane邊框顏色爲黃色。 – RGAT

+0

您可以刪除邊框底部,但製表符窗格的邊框仍然可見...?如果你有半透明的佈局,它不會有什麼區別。 – davidkonrad

回答

0

.tab-forms .nav-tabs li.active a:after刪除border-bottom屬性和設置border-bottom:none;.tab-forms .nav-tabs li.active a:before

+0

你能和小提琴一起分享嗎? – RGAT

+0

這裏是你的答案的小提琴。 http://jsfiddle.net/4oq218fz/如果這不是你的意思,請修改和分享。它顯示黃色的邊框,我需要刪除該空間,使選項卡看起來像一個文件夾。 – RGAT