我有什么:
-Bootstrap 4
-Navbar>下拉> Navtabs
当我按下navtabs中的链接时,下拉菜单关闭。我怎么修理它?
<div class="dropdown-menu" aria-labelledby="dropdown09">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist" style="padding-top: 1%">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#trud" role="tab">Трудовые единицы</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#profile" role="tab">Профиль</a>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="trud" role="tabpanel">
somthing 1
</div>
<div class="tab-pane" id="profile" role="tabpanel">
something 2
</div>
</div>
</div>
</div>
</div>
答案 0 :(得分:0)
@IBOutlet weak var topLeftButtonImage: UIButton!
// Edit it to round
topLeftButtonImage.layer.cornerRadius = topLeftButtonImage.frame.size.width/2
topLeftButtonImage.clipsToBounds = true
// Add border
topLeftButtonImage.layer.borderColor = UIColor.white.cgColor // Button border color
topLeftButtonImage.layer.borderWidth = 4 // Button border width