Bootstrap: In a modal dialog, how do I make the dropdown menu expand outside the dialog?

后端 未结 2 733
死守一世寂寞
死守一世寂寞 2021-02-05 04:00

Example code:

http://jsfiddle.net/vpg5g/

I\'d like to have the menu that drops down from the button expand over the modal\'s borders. As you see, the current sta

2条回答
  •  余生分开走
    2021-02-05 04:42

    The modal does not allow any overflowing, you can fix it by using :

    .modal { overflow: visible; }
    .modal-body { overflow-y: visible; }
    

    Working demo

    You may want to add a class to apply those rules only to modals that really need it, in case this fix creates bugs.

提交回复
热议问题