📜  如何在材质 ui 中更改线性进度的颜色 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:19.150000             🧑  作者: Mango

代码示例2
export const useStyles = makeStyles(() => ({
    root: {
        "& .MuiLinearProgress-colorPrimary": {
            backgroundColor: "red",
        },
        "& .MuiLinearProgress-barColorPrimary": {
            backgroundColor: "green",
        },
    },
})