小编m'h*_*mps的帖子

更改“溢出头像”的大小以匹配 AvatarGroup 中的其他头像

设置添加的额外头像max的道具AvatarGroup与其他头像的高度不符。

<AvatarGroup max={3}>
  <Avatar alt="Remy Sharp" src="/static/images/avatar/1.jpg" sx={{ width: 24, height: 24 }}/>
  <Avatar alt="Travis Howard" src="/static/images/avatar/2.jpg" sx={{ width: 24, height: 24 }}/>
  <Avatar alt="Cindy Baker" src="/static/images/avatar/3.jpg" sx={{ width: 24, height: 24 }}/>
  <Avatar alt="Agnes Walker" src="/static/images/avatar/4.jpg" sx={{ width: 24, height: 24 }}/>
  <Avatar alt="Trevor Henderson" src="/static/images/avatar/5.jpg" sx={{ width: 24, height: 24 }}/>
</AvatarGroup>
Run Code Online (Sandbox Code Playgroud)

会给出这样的结果

有没有办法让添加的头像遵循通用尺寸?

html reactjs material-ui

4
推荐指数
1
解决办法
2389
查看次数

标签 统计

html ×1

material-ui ×1

reactjs ×1