子子菜单未出现在移动设备上

子子菜单未出现在移动设备上

问题描述:

问了此问题后,我就能够向我的站点添加子菜单支持.但是,在移动设备上,菜单仅显示为空白行.

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;
  }
}