【问题标题】:There is gap in MaterialUI AppBarMaterial UI AppBar有差距
【发布时间】:2016-06-12 14:44:51
【问题描述】:

这是我第一次使用 Material UI(或前端世界)进行反应。实际上效果很好,但我注意到我的标题中有空白。

这是加载 MuiTheme 的 index.js:

const muiTheme = getMuiTheme({
  palette: {
    textColor: teal500,
  },
});

render(
  <MuiThemeProvider muiTheme={muiTheme}>
    <Provider store={store}>
      <Router history={browserHistory} routes={routes} />
    </Provider>
  </MuiThemeProvider>,
  document.getElementById('app')
);

我需要应用什么样式吗?

谢谢!

【问题讨论】:

    标签: css reactjs material-ui


    【解决方案1】:

    您可能应该在 CSS 中添加 body { margin: 0; }

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-12-02
    • 2018-08-01
    • 2015-09-26
    • 1970-01-01
    • 1970-01-01
    • 2018-10-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多