我有一个标题为文本字段的appbar,当我在appbar中传递centerTitle: true时,它不会居中并且保持左对齐。 这是我的代码 appBar: AppBar(
// Where user inputs the title of the note
centerTitle: true,
title: TextField(
// The style of the input field
decoration: InputDecoration(
hintText: '
我正在尝试使用<Typography align="center">作为页脚,以使文本居中对齐,但它不起作用。如何将文本居中对齐?
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import AppBar from "@material-ui/core/AppBar";
import CssBaseline from "@material-ui/core/CssBaseline";
im