在小屏幕上不工作导航栏菜单。引导

时间:2016-03-16 18:39:50

标签: jquery html css twitter-bootstrap twitter-bootstrap-3

有人可以解释一下,为什么我的导航栏菜单在移动视图或小屏幕上都不起作用? 我按"汉堡"而那一切都没有发生。希望有人帮助我。 您可以在实时项目http://evstek.eu5.org/contacts.html

中查看此问题



<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Контакты | Eugene Stek</title>
    <link href="includes/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="includes/bootstrap/css/myCss.css" rel="stylesheet" media="screen">
    <link href="includes/bootstrap/css/contacts.css" rel="stylesheet" media="screen">
    <script src="includes/bootstrap/js/bootstrap.min.js"></script>
    <script src="includes/jquery/jquery-1.12.1.min.js"></script>
</head>
<nav class="navbar navbar-default">
    <div class="container">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#important-id-for-collapsing" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a href="index.html" class="pull-left"><img class="img-responsive logo" src="includes/img/logo-png.png"></a>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="index.html">Главная</a></li>
                <li><a href="#">Портфолио</a></li>
                <li class="active"><a href="contacts.html">Контакты</a></li>
            </ul>
        </div>
    </div>
</nav>
&#13;
&#13;
&#13;

2 个答案:

答案 0 :(得分:0)

Bootstrap JS需要jquery,所以首先加载jquery,然后像下面那样引导JS

var promises;
angular.forEach($scope.myobjects, function(myobject) {
    var promise = $http({
        url   : urlPath,
        method: 'GET'
    });
    promises.push(promise);
});
$q.all(promises).then(function(resolvedPromises) {
  var firstPushedPromise = resolvedPromises[0];
  //var xPushedPromise = resolvedPromises[x];
}

答案 1 :(得分:-1)

好像你缺少/没有加载bootstrap.min.js文件。尝试用有效的副本替换它。