我无法弄清楚如何隐藏.tab-pane的重叠边框。我尝试剪裁但它仍然可见。
有没有人知道任何可以隐藏底部边框的jQuery插件?
请在底部看小提琴。
<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>
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;
}
答案 0 :(得分:0)
从border-bottom
移除.tab-forms .nav-tabs li.active a:after
属性并为border-bottom:none;
.tab-forms .nav-tabs li.active a:before