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?

推荐答案

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

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

jsfiddle:DEMO

Jquery相关问答推荐

将搜索面板和服务器端与POST AJAX请求一起使用时出现DataTables错误

如何在html css中制作响应表

Jquery 表数据无法在 html 上正确显示

jQueryUI 模态对话框不显示关闭按钮 (x)

Jquery如何通过数组中的属性查找对象

以ajax方式在rails 3中提交表单(使用jQuery)

基于垂直滚动的jquery添加/删除类?

Chart.js 中饼图的点击事件

在完成前一个请求之前中止新的 AJAX 请求

jQuery Force 为 iframe 设置 src 属性

使用 jQuery 从 AJAX 响应(json)构建表行

使用 JQuery 获取触发事件的元素的类

将图像 url 转换为 Base64

jQuery闪烁突出显示对div的影响?

如何使用 jQuery 停止默认链接点击行为

从 Select 元素中获取选定的选项

Uncaught TypeError: undefined is not a function on loading jquery-min.js

如何在没有鼠标事件的情况下在 jQuery 中获取鼠标位置?

获取对象属性中的最小值/最大值的快速方法

为什么我应该创建异步 WebAPI 操作而不是同步操作?