我正在使用 VS 2019 并处理 ASP.NET MVC 项目。
\n我遇到了必须手动解决的合并冲突。问题是 VS 编辑器顶部的合并工具\xe2\x80\x9d 中的 \xe2\x80\x9cMerge 更改按钮未显示。
\n我从2019年就看到这个问题发生了,但似乎仍然没有完全解决......
\n当使用以下代码单击图像时,我尝试打开模式:
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
Launch demo modal
</button>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
这是Bootstrap Modal Doc中的原始代码, 但它还可以工作,我单击按钮,但没有任何反应
css model-view-controller asp.net-mvc modal-dialog bootstrap-5