The two cells marked as pink becomes pink on mouse hover. How can I fill the grid with pink 100% width & height on mouse hover?
You are using the ListItem
as your grid container (not sure if this is a requirement or it was just easy for you), and by default the ListItem
component has padding.
You can disable this padding by settings the padding of that component to 0:
<ListItem button style={{padding: 0}}>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.