Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
429 views
in Technique[技术] by (71.8m points)

jquery - Bootstrap Carousel does not work

None of the carousel's buttons are responsive and whenever clicked don't do anything. The first image of the carousel shows up but I can't move on to the other one. Here is a screenshot

enter image description here

and here is the HTML code http://pastebin.com/cmtkH9vA Please help me get over the problem, as I'd like to get the carousel done as fast as I could. Thank you.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

When I run your code it gives the following error in Firebug:

Error: Bootstrap's JavaScript requires jQuery

This is because jQuery isn't loaded properly in your code.

You can (quick) fix this by adding http:// or https:// to the jQuery URL.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

or

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...