业务经理

微信扫描以上二维码

028-61286886

技术咨询

使用boostrap仿的一个站,modal弹层出不来

迅睿框架 更新 2022-05-31 16:27:31 传说中的菜鸡

使用boostrap仿的一个站,modal弹层出不来,求助,可付费。

方案

  • 淇云科技 #1 · 2022-05-31 15:22:35
    2381141475 qq
  • 志伟 #2 · 2022-05-31 15:26:04
    截图看看控制台报错信息
  • 传说中的菜鸡 #3 · 2022-05-31 15:48:24
    <button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#answers" aria-expanded="false" aria-controls="answers">点击查看</button>
    
    
    <div class="modal fade " id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">用心做一件事,就一定会收到赞赏</h4>
                </div>
                <div class="modal-body">
                   111
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>
    
    
    控制台没有报错
  • 传说中的菜鸡 #4 · 2022-05-31 15:51:23
    这是一个按钮<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#answers" aria-expanded="false" aria-controls="answers">点击查看正确答案</button>然后一个隐藏<div class="collapse" id="answers" style="margin-top: 20px;margin-bottom: 20px;"> <div class="well"> <p>{$daan}</p> </div> </div>最后一个modal弹层<div class="modal fade " id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <h4 class="modal-title" id="myModalLabel">用心做一件事,就一定会收到赞赏</h4> </div> <div class="modal-body"> 内容 </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> </div> </div> </div></div>现在是well好着,但是modal不出来,控制台不报错
  • 传说中的菜鸡 #5 · 2022-05-31 16:27:00
    满意答案
    自己用js搞定
  • 传说中的菜鸡 #6 · 2022-05-31 16:27:31
    @传说中的菜鸡:自己用JS搞定了,掉头发

迅睿系统漏洞

站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;
CMS内容同步复制
CMS内容同步复制(2026-10-10)
增加时间是否更新的开关