标签<Container>的作用是什么?
What is the function of the tag <Container>?
我正在阅读示例代码,但我不明白标签是什么 <Container>
在这里做。
<Container maxWidth="lg">
<AppBar className={classes.appBar} position="static" color="inherit">
<Typography className={classes.heading} variant="h2" align="center">Memories</Typography>
<img className={classes.image} src={memories} alt="icon" height="60" />
</AppBar>
<Grow in>
<Container>
^^^^^^^^^^^
我查了一下,结果都是关于HTML中的contianer标签和js中的函数,其中不包括看起来像<Container>
的标签。似乎我无法搜索 <Container>
这个词,google 搜索只是忽略了符号 <>
。我不知道如何应对。
好的,原来是material-ui中的一个组件。
这是文档:https://mui.com/components/container/
The container centers your content horizontally. It's the most basic
layout element.
我正在阅读示例代码,但我不明白标签是什么 <Container>
在这里做。
<Container maxWidth="lg">
<AppBar className={classes.appBar} position="static" color="inherit">
<Typography className={classes.heading} variant="h2" align="center">Memories</Typography>
<img className={classes.image} src={memories} alt="icon" height="60" />
</AppBar>
<Grow in>
<Container>
^^^^^^^^^^^
我查了一下,结果都是关于HTML中的contianer标签和js中的函数,其中不包括看起来像<Container>
的标签。似乎我无法搜索 <Container>
这个词,google 搜索只是忽略了符号 <>
。我不知道如何应对。
好的,原来是material-ui中的一个组件。
这是文档:https://mui.com/components/container/
The container centers your content horizontally. It's the most basic layout element.