简体   繁体   English

Bootstrap弹出消息

[英]Bootstrap pop up message

I am trying to do a pop up message using bootstrap but I am stuck and have no idea what I am doing wrong. 我正在尝试使用自举程序弹出消息,但我被卡住了,不知道我在做什么错。 I would be greatful if someone could help me out. 如果有人可以帮助我,我将非常感激。

<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#moreinfo">Find out more</button>

<div id="moreinfo" class="modal fade" role="dialog">
  <div class="modal dialog">
    <div class="modal-content">
      <div class="modal-header">
        fds
      </div>
      <!--end of modal header-->
      <div class="modal-content">
        fds
      </div>
      <!--end of modal content-->
      <div class="modal-footer">
        fds
      </div>
      <!--end of modal footer-->
    </div>
    <!--end of modal content-->
  </div>
  <!--end of modal dialog-->
</div>
<!--en dof more info div-->

Thats my code 那就是我的代码

Thanks 谢谢

您只是错过了睡觉的班级名称class="modal-dialog"

You missed '-' in class name modal dilog --> modal-dilog 您在类名modal dilog > modal-dilog错过了'-'

You can follow following code : 您可以按照以下代码进行操作:

Find out more 了解更多

<div id="myModal" class="modal fade" role="dialog">

    <div class="modal-dialog">

        <div class="modal-content">

            <div class="modal-header">
            fds
            </div><!--end of modal header-->

            <div class="modal-content">
            fds
            </div><!--end of modal content-->

            <div class="modal-footer">
            fds
            </div><!--end of modal footer-->

        </div><!--end of modal content-->

    </div><!--end of modal dialog-->

</div><!--en dof more info div-->

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM