-1

I have been creating a website and I am using Bootstrap 3.2.0 with a material design theme. When I go on my website and resize the window to be smaller and click on the button to open the nav nothing happens.

This is my code:

<html lang="en">     
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

<link rel="stylesheet" href="css/bootstrap.min.css"></link>

<link rel="stylesheet" href="material/dist/css/ripples.min.css"></link>

<link rel="stylesheet" href="material/dist/css/material-wfont.min.css"></link>

<link rel="stylesheet" href="fezvrasta.github.io/snackbarjs/dist/snackbar.min.css"></link>

<meta content="width=device-width, initial-scale=1" name="viewport"></meta>
<body>
        <div class="navbar navbar-warning">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-warning-collapse" aria-controls="navbar">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="javascript:void(0)">Python for Beginners</a>
            </div>
            <div class="navbar-collapse collapse navbar-warning-collapse">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="javascript:void(0)">Learn</a></li>
                    <li><a href="javascript:void(0)">Contact</a></li>
                </ul>

            </div>
        </div>
    </body>    
</html>

This is the material theme's site: http://fezvrasta.github.io/bootstrap-material-design/#about

I haven't made a JSFiddle because I'm not sure how to add bootstrap to it.

The site is online at: pythonforbeginners.site90.com

4

1 回答 1

0

Include the bootstrap script--without it that stuff wont work. Add this to your doc, below your jQuery script tag:

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
于 2015-02-26T21:15:11.117 回答