Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
可以在菜单组件写css处理
@核桃酥 咋写?菜单设置宽度百分百居中了就像上面一样不会对齐了,如果设置自动,然后居中能对齐,但是这种选中或悬浮的时候就不能左右占满了
#_ .ant-menu .ant-menu-item-only-child{ padding-left: 24px !important; }
@核桃酥 在 菜单这种能展开和不能展开的能不能对齐呢 中说:
#_ .ant-menu .ant-menu-item-only-child{ padding-left: 24px !important; } 这个css第二阶和下面的第一阶会一起移动
一二阶都是子菜单吧?