Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.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
Css 模态不切换_Css_Twitter Bootstrap_Modal Dialog - Fatal编程技术网

Css 模态不切换

Css 模态不切换,css,twitter-bootstrap,modal-dialog,Css,Twitter Bootstrap,Modal Dialog,我已经创建了一个项目,其中包含3个模态“联系人”、“登录”和“注册”。它们曾一度功能正常。我检查了以下内容:bootstrap.css、bootstrap.js和jQuery链接。jQuery和JS链接位于html的底部,在标记之前。所有链接看起来都正常。在发布此问题之前,已尝试更正此条件数小时。 似乎jQuery或.js链接没有被链接,但是正如我所说的,它们看起来很好 另一个重要的事情是模式日期显示在页面容器的左下角和下方 很抱歉,我不能发布图片,但是,我被告知,我需要至少10的声誉来发布图片

我已经创建了一个项目,其中包含3个模态“联系人”、“登录”和“注册”。它们曾一度功能正常。我检查了以下内容:bootstrap.css、bootstrap.js和jQuery链接。jQuery和JS链接位于html的底部,在标记之前。所有链接看起来都正常。在发布此问题之前,已尝试更正此条件数小时。 似乎jQuery或.js链接没有被链接,但是正如我所说的,它们看起来很好

另一个重要的事情是模式日期显示在页面容器的左下角和下方

很抱歉,我不能发布图片,但是,我被告知,我需要至少10的声誉来发布图片。我最近才加入


我知道当所有信息都不存在时,很难排除故障,请有人帮忙。我相信这很简单,这是我管理情态动词的技巧,因为同样的事情也发生在我身上。首先从bootstrap的示例中删除默认id=“#myModal”,并使用如下类:对于3个modals,您将使用3次。我的想法是,你可能有冲突的ID,因此你的代码中断。您可以在以下位置看到使用此模式的多个模态的示例:


//模态代码的其余部分
//模态代码的其余部分
//模态代码的其余部分

您能给出代码吗!
   <div class="modal fade modal1"  tabindex="-1" role="dialog" aria-
   labelledby="myModalLabel" aria-hidden="true">

  //rest of modal code

   </div>

   <button type="button" data-toggle="modal" data-target=".modal1">

   <div class="modal fade modal2"  tabindex="-1" role="dialog" aria-
   labelledby="myModalLabel" aria-hidden="true">

   //rest of modal code

   </div>

   <button type="button" data-toggle="modal" data-target=".modal2">

  <div class="modal fade modal3"  tabindex="-1" role="dialog" aria- 
  labelledby="myModalLabel" aria-hidden="true">

 //rest of modal code

 </div>