简体   繁体   English

下拉菜单中的问题

[英]Problem in Drop Down Menu

I am getting an issue with dynamic drop down menu. 动态下拉菜单出现问题。 Please check the screenshot. 请检查屏幕截图。 在此处输入图片说明

here I am getting the child menu list fixed into right side to screen. 在这里,我将子菜单列表固定在屏幕右侧。 It is not viewing correctly. 它无法正确查看。 I want to get this list either left side or upper the screen. 我想在左侧或屏幕上方获取此列表。

Sorry poor english. 对不起,英语不好。 Hope You understand. 希望你能理解。

Any help will be greatly appreciated. 任何帮助将不胜感激。 Thank you 谢谢

Looking at: http://www.d1079363-74.cp.blacknight.com/dev/ 查看: http : //www.d1079363-74.cp.blacknight.com/dev/

In your HTML, you need to add another class to the submenu that should open on the right, like this: 在HTML中,您需要向右侧打开的子菜单中添加另一个class ,如下所示:

<ul class="sub-menu open-right">

Then add this new CSS: 然后添加以下新CSS:

#menu ul ul ul.open-right {
    left: -100%;
}

That should work, but I haven't looked at all your CSS. 那应该可以,但是我还没有看过所有的CSS。 On the off chance that it doesn't work, try using left: -100% !important; 如果无法使用,请尝试使用left: -100% !important; instead. 代替。 If that works, I'll have a look at how to fix the specificity without using !important . 如果可行,我将介绍如何不使用!important来解决特异性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM