|
楼主 |
发表于 2016-7-20 21:02:08
|
显示全部楼层
可以在php里写个提示框,然后js控制显示隐藏,比如这个
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
点击按钮它就弹出来了
<script type="text/javascript">
$(document).ready(function(){
$('#bb').click(function(){
$('#myModal').modal();
});
});
</script> |
|