      /* 触发弹窗图片的样式 */
      #myImg {
        border-radius: 5px;
        cursor: pointer;
        transition: 0.3s;
      }
      #myImg:hover {
        opacity: 0.3;
      }

      /* 弹窗背景 */
      .modal {
        display: none;
        /* Hidden by default */
        position: fixed;
        /* 设置显示的优先层级级别 */
        z-index: 12;
        /* Sit on top */
        padding-top: 0px;
        /* Location of the box */
        left: 25%;
        top: 100px;
        width: 50%;
        /* Full width */
        
        /* Full height */
        overflow:hidden;
        /* Enable scroll if needed */

        /* Fallback color */

        /* Black w/ opacity */
      }

      /* 设置弹出图片的样式 */
      .modal-content {
        margin: auto;
        display: block;
        width: 100%;
        max-width: 1920px;
      }

      /* 设置文本内容的样式 */
      #caption {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 700px;
        text-align: center;
        color: #ccc;
        padding: 10px 0;
        height: 150px;
      }

      /* 设置弹出图片的动画，添加动画 */
      .modal-content,
      #caption {
        -webkit-animation-name: zoom;
        -webkit-animation-duration: 0.5s;
        animation-name: zoom;
        animation-duration: 0.5s;
      }

      @-webkit-keyframes zoom {
        from {
          -webkit-transform: scale(0)
        }
        to {
          -webkit-transform: scale(1)
        }
      }

      @keyframes zoom {
        from {
          transform: scale(0)
        }

        to {
          transform: scale(1)
        }
      }

      /* 设置span标签的关闭按钮样式 */
      .close {
        position: absolute;
        top: 0px;
        right: 0px;
        padding: 0 3px;
        z-index: 15;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        background-color: #a1a1a1;
      }

      .close:hover,
      .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
      }

      /* 小屏幕中图片宽度为 100% */
      @media only screen and (max-width: 700px) {
        .modal-content {
          width: 100%;
        }
      }