Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 sweetalert v2 并且我正在使用引导模型。问题是每当我打开引导模态并且我在模态按钮上触发了一个sweetalert。
swal() 函数被触发,但它总是隐藏在模态框后面。如何让甜心始终在顶部视图中。
问题可能是您在模态框上使用 tabindex。请从您的模态部门中删除以下属性。
tabindex="-1" aria-hidden="true" style='z-index:10000;'