/deep/ .el-menu { border-right: 0; width: 200px; } 使用/deep/ 在父组件中修改子组件样式,除去右侧白线,并且使大小与父容器宽度一致 修改前: 修改后