bootstrap

1.  popup window

<!-- Trigger the modal with a button -->
<input type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal" value="Open Modal"></input>

<!-- Modal -->
<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">
        <input type="button" class="btn btn-default" data-dismiss="modal" value="Close"></input>
      </div>
    </div>

  </div>
</div>
原文地址:https://www.cnblogs.com/dufu/p/4773424.html