<div class="modal fade" id="share-modal" tabindex="-1" role="dialog" aria-labelledby="shareModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="shareModalLabel">Permalink</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
+ </button>
</div>
<div class="modal-body w-100">
<input class="form-control"
value="{{ url_for('.show_photo', photo_id=photo.id, _external=True) }}"
readonly>
</div>
</div>
</div>
</div>
模态框右上角多了个+号
<div class="modal fade" id="share-modal" tabindex="-1" role="dialog" aria-labelledby="shareModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="shareModalLabel">Permalink</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body w-100">
<input class="form-control"
value="{{ url_for('.show_photo', photo_id=photo.id, _external=True) }}"
readonly>
</div>
</div>
</div>
</div>
改成上面这段代码,模态框正常显示,可这两段代码哪里不同呢?什么原因多了个加号?