我使用帶有下拉列表的引導程序響應導航。當網站顯示在一個小屏幕上時,我想禁用下拉菜單並啓用下拉切換按鈕後面的超鏈接。禁用引導程序下拉列表
我已經添加了禁用的類到切換按鈕,但我怎麼才能使其工作只@media(max-width:480px)?
在這裏你可以找到一個test page
<div class="row nav_row mobile">
<ul class="nav nav-pills dropdown nav_responsive">
<li><a class="dropdown-toggle collapse-btn">Menu<span class="caret"></span></a></li>
</ul>
<div class="nav-collapse">
<ul class="nav nav-pills">
<li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#">Vakanties <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Binnenland</a></li>
<li><a href="#">Buitenland</a></li>
<li><a href="#">Inleefreizen</a></li>
<li><a href="#">Gezondheidsreizen</a></li>
</ul>
</li>
<li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#">Vormingen <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Monitor</a></li>
<li><a href="#">Hoofdmonitor</a></li>
<li><a href="#">Instructeur</a></li>
</ul>
</li>
<li><a href="#">Gezondheid</a></li>
<li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#">Internationaal <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">EVS</a></li>
<li><a href="#">Groepsuitwisselingen</a></li>
<li><a href="#">Trainingscursussen</a></li>
</ul>
</li>
<li><a href="#">Projecten</a></li>
<li class="clearfix"><a href="#">Actueel</a></li>
</ul>
<div style="clear:left"></div>
</div>
</div>