0
如何在懸停在鏈接上時在側欄中創建具有小描述的下拉菜單的功能?它可以通過純CSS完成嗎?關於懸停在引導程序的下拉菜單中的頁面描述
http://codepen.io/anon/pen/aNyORv
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!--/.navbar-header-->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Two Column <b class="caret"></b></a>
<ul class="dropdown-menu multi-column columns-2">
<div class="row">
<div class="col-sm-6">
<ul class="multi-column-dropdown">
<li><a href="#">title 1</a></li>
<li><a href="#">title 2</a></li>
</ul>
</div>
<div class="col-sm-6">
<ul class="multi-column-dropdown">
<li>This is visible by default or when hovering over Title 1</li>
<li>This is hidden but visible when hovering over Title 2</li>
</ul>
</div>
</div>
</ul>
</li>
</ul>
</div>
<!--/.navbar-collapse-->
</nav>
<!--/.navbar-->
謝謝,我將探索代碼。我知道Bootstrap有工具提示代碼,但我從來沒有想過在這個例子中可能會有用。至於移動用戶,這個描述只對桌面用戶有用,我會試着將其隱藏在其他屏幕上 – Marko