当另一个div溢出-x时,perfect-scrollbar垂直滚动不起作用:

时间:2019-10-01 16:05:16

标签: html css perfect-scrollbar

下面是具有水平滚动条的div,当我将鼠标移至该div时,完善滚动的垂直滚动不起作用

<div style={{width: "100%", overflowX: "auto"}}>
<Table>
    <TableHead>
      <TableRow>
        <TableCell>Dessert (100g serving)</TableCell>
        <TableCell align="right">Calories</TableCell>
        <TableCell align="right">Fat&nbsp;(g)</TableCell>
        <TableCell align="right">Carbs&nbsp;(g)</TableCell>
        <TableCell align="right">Protein&nbsp;(g)</TableCell>
      </TableRow>
    </TableHead>
    <TableBody>
      <TableRow>
        <TableCell align="right">TEST</TableCell>
        <TableCell align="right">TEST</TableCell>
        <TableCell align="right">TEST</TableCell>
        <TableCell align="right">TEST</TableCell>
        <TableCell align="right">TEST</TableCell>
      </TableRow>
    </TableBody>
  </Table>
</div>

0 个答案:

没有答案