react Ant Design Menu导航菜单 如何取消鼠标左键按住了菜单的背景色

选中的背景色已经去了

.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{
        background: none;
    }

但是左键按住了的菜单颜色类名找不到 初步分析应该是有个什么 :active 求助

阅读 4.5k
2 个回答

一级菜单按住背景色样式

.ant-menu-submenu-title{
   background: #fff !important;
}

二级菜单按住背景色样式

.ant-menu-item-active {
    background-color: #fff !important;
    color: #fff !important;
}

把transition都卸了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题