bootstrap 模态框的简单实用案例

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="bootstrap-3.3.4-dist/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="bootstrap-3.3.4-dist/css/bootstrap.min.css">
</head>


<body>
<h2>my test modal in bootstarp</h2>
<a href="javascript:myModalTest()">myModal</a>
   <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" οnclick="" data-dismiss="modal"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">开课信息</h4>
</div>
<div class="modal-body" id="modal-body">
<div class="row">
<div class="form-horizontal" method="post" style="margin-left: 50px">
<div class="box-body table-responsive">               
    <table id="courseLst" class="table dataTable table-bordered table-hover ellipsisTb">
                         <tbody>
<tr index="4" style="">
<td>结束时间</td>
<td title="03/24/2015 09:56" class="text-center">03/24/2015 09:56</td>
</tr>
<tr index="4" style="">
<td>状态</td>
<td title="可申请" class="text-center">可申请</td>
</tr>
 </tbody>
                 </table>                                  
              </div>
</div>
</div>
</div>
<div class="modal-footer">

</div>          
</div>
</div>
</div>
</body>


<script type="text/javascript">


$(document).ready(function() {
console.log('fool');
});
function myModalTest() {
console.log("test");
$("#myModal").modal();
}


</script>

</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值