M
M
Maks Burkov2017-06-12 14:25:10
Bootstrap
Maks Burkov, 2017-06-12 14:25:10

What is missing for Dropdown menu?

Example from tutorial:
Tutorial

<div class="dropdown">
        <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">Dropdown Example
            <span class="caret"></span></button>
        <ul class="dropdown-menu">
            <li><a href="#">HTML</a></li>
            <li><a href="#">CSS</a></li>
            <li><a href="#">JavaScript</a></li>
        </ul>
    </div>

My header:
<head>
    <meta charset="UTF-8">
    <title>NavigationExample1</title>

    <link rel="stylesheet" href="../css/bootstrap.css">
    <link rel="stylesheet" href="../css/navigation.css">
    <link rel="stylesheet" href="../node_modules/fontawesome/index.js">
    <script src="../js/bootstrap.js"></script>
    <script src="../node_modules/jquery/dist/jquery.js"></script>
</head>

The code is simple, but I don't understand what is missing for full-fledged work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Павел, 2017-06-12
@Maks00088

Пример скорее тут:
https://www.w3schools.com/bootstrap/tryit.asp?file...
У вас вроде бы все есть, проверяйте пути и код

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question