小编Евг*_*вич的帖子

TableRow 之间的间距 Material-UI

我想在TableRow MaterialUI组件之间添加空间。我怎样才能做到这一点?

<S.MainTable>
  <TableBody>
   {rows.map(row => {
     return (
       <S.StyledTableRow key={row.id}>
         <TableCell component="th" scope="row">{row.name}</TableCell>
         <TableCell numeric>{row.calories}</TableCell>
         <TableCell numeric>{row.fat}</TableCell>
         <TableCell numeric>{row.carbs}</TableCell>
         <TableCell numeric>{row.protein}</TableCell>
       </S.StyledTableRow>
           );
         })}
  </TableBody>
</S.MainTable>
Run Code Online (Sandbox Code Playgroud)

javascript css jsx reactjs material-ui

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

标签 统计

css ×1

javascript ×1

jsx ×1

material-ui ×1

reactjs ×1