2017-04-25 70 views
-2

我想知道如何在溢出子菜单时更改第二个(子)下拉菜单的位置。现在,当菜单溢出时,在左侧可以看到右侧。如何更改当下拉菜单溢出时的下拉位置

在这下面的链接访问识别标识下访问注销之前链接identify3它显示另一个子菜单应该自带左侧,如果没有溢出应该只在右侧...

http://demos.sanwebcorner.com/matex/

在此先感谢!

+0

发布您的代码**的**问题,并解释什么地方错了 –

+0

可你能理解我的查询? – user7357089

+0

是的。你能理解我的评论吗? –

回答

1

将这个在你的CSS文件:

menu ul ul ul li { 
    right: 170px; 
    left: initial !important; 
} 
+0

您应该更改您的问题以供将来参考,请阅读以下内容:http://stackoverflow.com/help/mcve –

0

只是改变left:170pxright :170px我-的style.css线920

menu ul ul ul li { 
    right: 170px; 
} 
0

使用本这样的样式将被应用到最后一个孩子(发生溢出的位置):

menu ul ul ul li:nth-last-child(2) 
    { 
    right:170px;/* if you want the alignment to be left of the hovered list*? 
    } 

OR

menu ul ul ul li:nth-last-child(2) 
{ 
top:0;/* if you want the alignment to be bottom of the hovered list*/ 
    left:0;/*not neccessary if style aren't used in parent class/elements*/ 
    right:0; 
}