Bootstrap:在模态对话框中,如何使对话框外部的下拉菜单展开? [英] Bootstrap: In a modal dialog, how do I make the dropdown menu expand outside the dialog?

查看:68
本文介绍了Bootstrap:在模态对话框中,如何使对话框外部的下拉菜单展开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例代码:

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 state is unusable. Is there some way to achieve this?

推荐答案

模式不允许任何溢出,您可以通过使用以下方法修复它: p>

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

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

工作演示

您可能想要添加一个类,将这些规则仅应用于真正需要它的模块,以防此修复程序产生错误。

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

这篇关于Bootstrap:在模态对话框中,如何使对话框外部的下拉菜单展开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆