How can I dismiss a bootstrap panel using data-dismiss?

后端 未结 4 1702
遥遥无期
遥遥无期 2021-01-01 23:23

I have a button which opens a panel and I want to be able to close it like I would with an alert.

The Default panel example from bootstrap docs



        
4条回答
  •  天涯浪人
    2021-01-01 23:43

    You can do this by using an undocument feature to set the target of the dismiss action...

    
    

    This will make the close button close the panel as opposed to its parent element.

提交回复
热议问题