我有问题渲染使用jQuery的引导模式,这是我到目前为止有:引导模态的Jquery没有渲染或显示正确
HTML
<div id="myModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Confirmation</h4>
</div>
<div class="modal-body">
<p>Do you want to save changes you made to document before closing?</p>
<p class="text-warning"><small>If you don't save, your changes will be lost.</small></p>
</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 changes</button>
</div>
</div>
</div>
</div>
jQuery的
$('#update_modal').on('click', function() {
console.log("clicked");
jQuery.noConflict();
$("#myModal").modal('show');
})
有是一个按钮,其ID为“update_modal”。
这是一个Snapshot它看起来像。正如你所看到的,它没有正确渲染所有东西,我也无法点击任何关闭模式的地方。
请有人告诉我,如果我错过了任何东西。谢谢
请分享你的整个'HTML'结构。 – Shiladitya