Html 为什么这个小的
在引导程序中编写模式时会干扰我的代码? 此文件存储在my index.html.erb文件中。在我取消对下面这一段的注释之前,模态可以正常工作。这只是示例文本。一旦取消注释,我就无法再导航到同一控制器中的其他视图。同样,如果我取消对popover代码或工具提示代码的注释,也会发生同样的情况。我必须评论一个或相同的错误发生。有什么建议吗?这很奇怪Html 为什么这个小的,html,twitter-bootstrap,bootstrap-modal,Html,Twitter Bootstrap,Bootstrap Modal,在引导程序中编写模式时会干扰我的代码? 此文件存储在my index.html.erb文件中。在我取消对下面这一段的注释之前,模态可以正常工作。这只是示例文本。一旦取消注释,我就无法再导航到同一控制器中的其他视图。同样,如果我取消对popover代码或工具提示代码的注释,也会发生同样的情况。我必须评论一个或相同的错误发生。有什么建议吗?这很奇怪 <div class="span3"> <a href="#myModal" role
<div class="span3">
<a href="#myModal" role="button" class="btn btn-warning" data-toggle="modal"><span class="glyphicon glyphicon-hand-up"></span>Keep Me Posted</a>
<div class="modal fade" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Keep Me Posted</h4>
</div>
<div class="modal-body">
<h4>text in body</h4>
<!-- <p> n joining us, you can use their web based application or download their mobile app . Also, we'll soon blast out
a bit more of information about what to expect, what products wil be reviewed, hours of operation, exp </p> -->
<!-- <h4>Popovers in a modal</h4>
<a href="#" class="btn btn-danger pop">Dont click this button</a> -->
<h4>Tooltips in a modal</h4>
<!-- <a href="">This link</a> should have a tooltip and so should <a href="">this one</a> -->
</div>
</div>
</div>
</div>
</div>
你说不能导航到其他视图是什么意思?其他页面的链接是否停止工作?如果是这样,可能您的模态没有关闭,标记显示为一个块,并且位于其他所有内容之上,基本上阻止您单击任何内容。它已关闭。它是上面代码中注释掉的标记。你知道空的href href=是否也会引起模态问题吗?空的href不应该影响模态,但它们也不会做任何事情。如果您想要一个可点击的链接,但不想将其重定向到任何地方,最好使用href=。那么,当您关闭模式后尝试点击此页面上另一个视图的链接时,会发生什么情况?模式在index.html.erb中编码,然后当im在索引页面上并尝试导航到其他链接(如联系我们、Traderoom或bios)时,那么他们的链接就不起作用了。但是,如果您尝试从其他链接中的一个来建立索引链接,它会很好地工作。这是应用程序traderwitch.com的链接