Bootstrap Modal visible on document load

前端 未结 2 1363
面向向阳花
面向向阳花 2021-01-22 01:54

I have a Bootstrap Model working fine, except that it is visible when the document loads and I can\'t work out how to make the initial state invisible?



        
相关标签:
2条回答
  • 2021-01-22 02:44

    Following documentation, add hide class to the modal.

    <div class="modal hide fade">
        ...
    </div>
    
    0 讨论(0)
  • 2021-01-22 02:53

    Turns out simply adding style="display: none" to the modal outer div did the trick.

    0 讨论(0)
提交回复
热议问题