[英]How can I change the label elevation of a material ui TextField?
I want to elevate the label of a textfield but I cant, this is my code.我想提升文本字段的 label 但我不能,这是我的代码。
textStyle: {
backgroundColor: '#1c1a1a',
border: 0,
borderRadius: 0,
width: 400,
height: 66,
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
marginBottom: 10,
padding: '0 10px',
'& .MuiFormLabel-root': {
color: 'grey',
padding: '1px',
height:'10px',
},
},
height does nothing, how can I elevate the label?高度什么都不做,我怎样才能提升 label?
Add this field to your textStyle
:将此字段添加到您的
textStyle
:
marginTop: -10
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.