子子菜单未出现在移动设备上 [英] Sub-Submenu not appearing on mobile device
本文介绍了子子菜单未出现在移动设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问了此问题后,我就能够向我的站点添加子菜单支持.但是,在移动设备上,菜单仅显示为空白行.
After asking this question, I was able to I was able to add sub-submenu support to my site. However, on mobile, the menus just appear as blank lines.
推荐答案
替换:
#menu .menus li > ul.menus {
transform: translateX(100%) scale(1.0);
top: 0;
}
使用
@media only screen and (min-width: 981px) {
#menu .menus li > ul.menus {
transform: translateX(100%) scale(1.0);
top: 0;
}
}
如果情况变得更糟,您可以不替换任何内容,只需添加以下代码:
If worst comes to worst, you could not replace anything and just add this code:
@media only screen and (max-width: 980px) {
#menu .menus li > ul.menus {
transform: translateX(100%) scale(1.0) !important;
}
}
这篇关于子子菜单未出现在移动设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文