在移动设备中查看时,Bootstrap菜单会完全显示。

时间:2017-07-06 17:09:32

标签: jquery html css twitter-bootstrap mobile

非常感谢提前!我是一名使用SIMA自举模板的平面设计师。我没有成功联系模板的作者。除了在移动设备上查看网站时,所有内容都是犹太的,导航菜单会完全显示。用户必须手动单击导航选项卡以隐藏菜单(可用性差)。我搜索了类似的问题,发现我有正确的Meta View标签,我的导航类和id似乎就在那里。我网站的链接位于www.thesunkenweb.com/loteksystems作者网站的链接(结果相同)为https://readytheme.net/item/sima-one-page-multipage-template/ HTML代码段:

    <!-- Start Header Section -->
    <header class="main_menu_sec navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="row">
                <div class="col-lg-3 col-md-3 col-sm-12">
                    <div class="lft_hd">
                        <a href="index.html"><img src="http://www.thesunkenweb.com/loteksystems/img/LotekSystemsLogo_1.png" alt="Lotek Systems"/></a>
                </div>
            </div>          
            <div class="col-lg-9 col-md-9 col-sm-12">
                <div class="rgt_hd">                    
                    <div class="main_menu">
                        <nav id="nav_menu">
                            <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            </button>   
                        <div id="navbar">
                            <ul>
                                <li><a class="page-scroll" href="index.html">Home</a></li> 
                                <li><a class="page-scroll" href="#abt_sec">About Us<i class="fa fa-angle-down"></i></a>
                                    <ul>
                                        <li><a class="page-scroll" href="#tm_sec">Meet Andy</a></li>
                                        <li><a class="page-scroll" href="#tstm_sec">Testimonials</a></li>
                                        <li><a class="page-scroll" href="#clt_sec">Experience</a></li>
                                    </ul>
                                </li>                       
                                <li><a class="page-scroll" href="#pr_sec">Services<i class="fa fa-angle-down"></i></a>
                                    <ul>
                                        <li><a class="page-scroll" href="CustomCloudManagement.html">Custom Managed Cloud Hosting</a></li>
                                        <li><a class="page-scroll" href="CloudMigration.html">Cloud Migration</a></li>
                                        <li><a class="page-scroll" href="ApplicationManagement.html">Application Management</a></li>
                                        <li><a class="page-scroll" href="ComputerRepairs.html">Computer Repairs</a></li>
                                    </ul>
                                </li>
                                <li><a class="page-scroll" href="#ctn_sec">Contact Us</a></li>
                            </ul>
                        </div>      
                        </nav>          
                    </div>                          
                </div>
            </div>  
        </div>  
    </div>  
</header>
<!-- End Header Section -->

1 个答案:

答案 0 :(得分:0)

@media (max-width:767px){
  #navbar{display:none}
}

添加此内容,所有内容都将是kosher☺