Remote modal works on Bootstrap 3.0.0rc1 but doesn't in 3.0.0 final

自作多情 提交于 2019-12-11 03:39:51

问题


I found this example working on 3.0.0 rc1

http://plnkr.co/edit/HWSgSw?p=preview

But when I change it to point to 3.0.0 final it stop working. Why? Thanks


回答1:


Replace

<a href="first.html" data-target="#myModal" role="button" class="btn btn-default" data-toggle="modal">Launch First</a>
<a href="second.html" data-target="#myModal" role="button" class="btn btn-default" data-toggle="modal">Launch Second</a>

with

<a href="#myModal" data-target="#myModal" role="button" class="btn btn-default" data-toggle="modal">Launch First</a>
<a href="#myModal" data-target="#myModal" role="button" class="btn btn-default" data-toggle="modal">Launch Second</a>


来源:https://stackoverflow.com/questions/19182147/remote-modal-works-on-bootstrap-3-0-0rc1-but-doesnt-in-3-0-0-final

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!