【问题标题】:React Material Margin in TextFields在 TextFields 中反应材料边距
【发布时间】:2020-10-26 07:35:51
【问题描述】:

我有一个非常简单的问题。我试图将marginButtom 放在TextFields 上。我不知道为什么它没有设置任何边距。

请检查此代码框链接

CLICK HERE

代码

      <label>Schedule</label>
          <TextField
            fullWidth
            name="schedule"
            type="date"
            variant="outlined"
            className={classes.marginButtom}
          />

【问题讨论】:

  • 你在marginButtom: { marginButtom: "10px" }中有错字

标签: css reactjs material-ui react-material


【解决方案1】:

那是因为您的样式对象中有错字。

  marginButtom: {
    marginButtom: "10px" // It should be marginBottom instead of marginButtom
  },

【讨论】:

    猜你喜欢
    • 2021-09-01
    • 2022-06-30
    • 1970-01-01
    • 2018-03-15
    • 2020-10-08
    • 1970-01-01
    • 1970-01-01
    • 2022-01-22
    • 2019-05-14
    相关资源
    最近更新 更多