模态窗口不起作用

时间:2015-10-31 14:18:03

标签: twitter-bootstrap twitter-bootstrap-2

网址http://ritual24.com/ 屏幕http://SSMaker.ru/af31d6f2/

                        <a data-toggle="modal" href="[~[*id*]~]#myModal" role="button">[ заказать звонок ]</a>      
                      <!-- Modal -->
                        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                          <div class="modal-dialog" role="document">
                            <div class="modal-content">
                              <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                <h4 class="modal-title" id="myModalLabel">Modal title</h4>
                              </div>
                              <div class="modal-body">
                                ...
                              </div>
                              <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                <button type="button" class="btn btn-primary">Save</button>
                              </div>
                            </div>
                          </div>
                        </div>  

bootstrap ver.3 浏览器控制台中没有错误

1 个答案:

答案 0 :(得分:1)

我在CODEPEN进行测试时效果很好。

确保您已加载所有必需的文件,包括:

CSS:

bootstrap.css

JavaScript:

jquery.js

bootstrap.js