当我单击按钮并显示模型弹出窗口的完整信息时

时间:2016-03-08 06:59:21

标签: php html sql model popup

当我点击按钮并显示模型弹出窗口的完整信息

<button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target="#myModal"  >
<i class="glyphicon glyphicon-zoom-in"></i>
</button><!-- Modal -->

信息将显示模型弹出

1 个答案:

答案 0 :(得分:0)

试试这个

<button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target="#myModal"  >
<i class="glyphicon glyphicon-zoom-in"></i>
</button><div id="myModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

<div id="myModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Modal Header</h4>
      </div>
      <div class="modal-body">
        <p>Some text in the modal.</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>

  </div>
</div>

Live Demo