你能帮我修复模式吗,我正在使用一个锚标签作为 bootstrap 模式,但它不工作.

<div class="p border-top py-3">Doesn't have an account yet? <a href="#" data-toggle="modal" data-target="#exampleModalCenter">Create an account</a></div>

<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
     <div class="modal-dialog modal-lg">
         <div class="modal-content">
             ...
         </div>
     </div>
</div>

'''

推荐答案

只需切换到数据bs切换,数据bs目标

<div class="p border-top py-3">Doesn't have an account yet? <a href="#" data-bs-toggle="modal" data-bs-target="#exampleModalCenter">Create an account</a></div>
<div class="modal fade" id="exampleModalCenter" tabindex="-1" aria-labelledby="myLargeModalLabel" aria-hidden="true">
   <div class="modal-dialog modal-lg">
      <div class="modal-content">
         ..
      </div>
   </div>
</div>

Php相关问答推荐

打印SQL表内容时在DIV内添加断点

Laravel 10查询中的多个where子句

如何将对我的域的请求重定向到子文件夹中的索引,同时保留域URL并使用.htaccess?

通过DO LAMP进行身份验证并从邮箱发送邮箱的最简单方式是什么

在WooCommerce中的本地收件发货方式下添加一个 Select 字段

根据WooCommerce中的客户计费国家/地区更改产品价格

将一个按钮添加到WooCommerce产品的管理视图中,该按钮链接到一个自定义的WebHook,并在末尾附加产品ID

使用HPOS过滤WooCommerce中的订单列表

文本到语音:不考虑音高值

允许在WooCommerce管理订单列表中使用计费邮箱进行搜索

对 WooCommerce 购物车和 checkout 中显示的运输方式进行排序

PHP 中使用 JSON 的自定义会话处理程序会因错误而 destruct 会话

为什么 php 只能在我的 Nginx Web 服务器的某些目录中工作?

通过ajax发送数据到下拉列表未完全设置为所选

如何在 laravel 中的同一个 slug 上显示不同的内容?

如何使用 WhatsApp Cloud API 向 WhatsApp 发送消息,而无需在发送消息之前注册收件人号码?

使用 PHP 正则表达式从仅包含具有现有顺序的顶级标签的 XML 文档中搜索和创建数组

Laravel 响应 html 默认页面忽略控制器

Symfony 在将它传递给 Twig 时是否从数据库中获取整个对象?

通过php在xml文件中添加 node