gpt4 book ai didi

reactjs - 在 dropzone-material-ui 中更改段落样式

转载 作者:行者123 更新时间:2023-12-05 07:19:07 26 4
gpt4 key购买 nike

如何使用 makeStyles 更改 material-ui-dropzone 组件的样式?

我的 useStyle 是:

const useStyles = makeStyles(theme => ({
DropzoneArea: {
fontWeight: 10,
margin:0,
padding:0
}
}

and in app.js i use this:

<DropzoneArea
acceptedFiles={['image/*']}
maxFileSize={10000000}
filesLimit={1}
dropzoneClass={classes.DropzoneArea}
/>

最佳答案

我不认为你可以用 makeStyles 来设计它。

最好的方法是从检查器中获取 p 元素的类名并为其设置样式。它对我有用。

.MuiDropzoneArea-text {        .....Your style here}

如果需要,用"!important"标记样式。

关于reactjs - 在 dropzone-material-ui 中更改段落样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58004293/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com