Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 为什么我能';不要在模式窗口中使用滑动图片_Html_Css_Twitter Bootstrap - Fatal编程技术网

Html 为什么我能';不要在模式窗口中使用滑动图片

Html 为什么我能';不要在模式窗口中使用滑动图片,html,css,twitter-bootstrap,Html,Css,Twitter Bootstrap,我有一个按钮,当点击他我创建打开模态窗口。在模态窗口中,我创建了旋转木马滑块,我在V形左右滑动时出现问题,这不起作用,在我的计算机图像上滑动5秒,但在JSFIDLE上滑动不起作用,你能告诉我在V形左右滑动有什么问题吗。 在我的大项目中,我有两个滑块,当我在模态窗口中点击雪佛龙时,我的页面会向下滚动 JSFIDLE HTML 点击这里 为您的转盘提供id,只需添加以下jquery行: $(function(){ $('#carousel').carousel(); }); 更新:必须在左

我有一个按钮,当点击他我创建打开模态窗口。在模态窗口中,我创建了旋转木马滑块,我在V形左右滑动时出现问题,这不起作用,在我的计算机图像上滑动5秒,但在JSFIDLE上滑动不起作用,你能告诉我在V形左右滑动有什么问题吗。 在我的大项目中,我有两个滑块,当我在模态窗口中点击雪佛龙时,我的页面会向下滚动

JSFIDLE

HTML

点击这里

为您的转盘提供id,只需添加以下jquery行:

$(function(){
  $('#carousel').carousel();
});

更新:必须在左右按钮上提供相同的滑块id


还可以使用左右按钮查看它的工作情况。

您忘记了旋转木马的id,并且将class属性与div标记混合在一起

<div id="locations" class="carousel slide" data-ride="carousel">


&伊萨库;
&rsaquo;

滑块不工作,在我的情况下,当我点击圆圈右键或左键不工作时,我不知道为什么,当我点击右键我的背景md页面向下滚动时,指示器右键和左键不工作,我还将位置更改为位置3,我在向下解决的所有位置都是V形右键或左键,我将href替换为数据目标和工作方式您知道如何设置固定宽度和高度,并将其放入该窗口以显示符合模式显示的图片,因为现在我的窗口在滑动图片时上下移动,因为图片的宽度和高度不固定same@RS92
<div id="locations" class="carousel slide" data-ride="carousel">
<a class="left carousel-control" data-target="#locations" data-slide="prev">
     &lsaquo;
     <span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" data-target="#locations" data-slide="next">
     &rsaquo;
     <span class="glyphicon glyphicon-chevron-right"></span>
</a>