Bootstrap Carousel不起作用 [英] Bootstrap Carousel does not work

查看:680
本文介绍了Bootstrap Carousel不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

旋转木马的按钮均无响应,并且每当单击该按钮时都不会执行任何操作.转盘的第一张图片出现了,但我不能继续前进.这是屏幕截图

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

,这里是HTML代码 http://pastebin.com/cmtkH9vA 请帮助我解决问题,因为我希望尽快完成轮播.谢谢.

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.

推荐答案

当我运行您的代码时,它在Firebug中给出了以下错误:

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

Error: Bootstrap's JavaScript requires jQuery

这是因为jQuery未正确加载到您的代码中.

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

您可以通过在jQuery URL中添加http://或https://(快速)来解决此问题.

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>

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

这篇关于Bootstrap Carousel不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆