【发布时间】:2018-06-03 14:40:55
【问题描述】:
我正在尝试在对话框中放置一个 CircularProgress。但是对话框背景是白色的,不能像早期版本一样设置为透明-Material UI v0.2
style={{
width: '200px',
marginLeft: '40%',
backgroundColor: 'transparent'
}}
我需要使对话框背景透明。这是我的代码:
<Dialog
bodyStyle={{margin: 0, padding: 0}}
open={true}
style={{
width: '200px',
marginLeft: '40%',
backgroundColor: 'transparent'
}}
overlayStyle={{backgroundColor: 'transparent'}}
>
<CircularProgress
style={{display: 'inline-block'}}
size={50}
color={"#00db49"}
/>
</Dialog>
【问题讨论】:
标签: css reactjs dialog material-ui