如何使twitter bootstrap子菜单在左侧打开? [英] how to make twitter bootstrap submenu to open on the left side?

查看:106
本文介绍了如何使twitter bootstrap子菜单在左侧打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在下拉菜单中创建twitter bootstrap子菜单,但我有一个问题:我有一个下拉菜单在页面的右上角,该菜单有一个子菜单。但是,当子菜单打开时 - 它不适合在窗口中,向右移得太多,以便用户只能看到第一个字母。

I was trying to create twitter bootstrap submenu in dropdown menu, but I've got a problem: I have dropdown menu in the top right corner of the page and that menu has one more submenu. However, when submenu opens - it does not fit in the window and goes too much to the right, so that user can see only first letters. How to make that submenu to open not to the right, but to the left?

推荐答案

最简单的方法是添加 pull-left 类别下拉子菜单

The simplest way would be to add the pull-left class to your dropdown-submenu

<li class="dropdown-submenu pull-left">

jsfiddle: DEMO

jsfiddle: DEMO

这篇关于如何使twitter bootstrap子菜单在左侧打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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