下拉菜单不会超出xs size视口中的导航栏

时间:2017-08-01 17:41:58

标签: drop-down-menu

这里的第一个问题就这么简单......(你能通过互联网闻到恐惧吗?)好的,所以我的下拉菜单在桌面大小视口中工作正常但是通过移动大小的开发者工具查看它会被剪裁并且不会超越导航div的底部。什么给,哟?这是代码,我理解的是已接受的协议......

<!--start of navbar-->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container-fluid"><!--stretches navbar full width of screen-->

        <div class="navbar-header">
            <!--hamburger collapse menu-->
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span><!--sr-only is for people with vision impairment-->
                <span class="icon-bar"></span><!--triple lines on burger menu-->
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>

            <a class="homelink navbar-brand" href="#">Michael Amos</a>

        </div> <!--/nav header-->

        <div class="collapse navbar-collapse"> <!--make navbar list collapse when resize for small screen-->
            <ul class="nav navbar-nav navbar-right"><!--applies bootstrap styling to float navbar items right-->
                <li><a href="#about">about</a></li>
                <li><a href="#contact">contact</a></li>
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown"  href="#" role="button" aria-haspopup="true" aria-expanded="false">work<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#work">example 1</a></li>
                        <li><a href="#work2">example 2</a></li>
                        <li><a href="#work3">example 3</a></li>
                    </ul>
                </li>
                <li><a href="#faq">FAQ</a></li>
            </ul>
        </div> <!--/nav collapse-->
    </div> <!--/container-fluid-->
</nav> <!--/navbar-->

Muchas gracias!

0 个答案:

没有答案