返回顶部

收藏

twitter-bootstrap中modal的加载新页面

更多
<link href="docs/assets/css/bootstrap.css" rel="stylesheet">
<link href="docs/assets/css/bootstrap-responsive.css" rel="stylesheet">
<script src="docs/assets/js/jquery.js"></script>
<script src="docs/assets/js/bootstrap.js"></script>

<a class="btn-info" data-toggle="modal" data-url="docs/getting-started.html" href="#infoModal">远程信息</a>
<div class="modal" id="infoModal"></div>
<script>
$("a[href=#infoModal]").click(function(){
    $("#infoModal").load($(this).attr("data-url"));
});
</script>

标签:html

收藏

0人收藏

支持

0

反对

0

发表评论