【问题标题】:How to inline code pseudo css class :hover on react material-ui element?如何内联代码伪css类:悬停在react material-ui元素上?
【发布时间】:2022-01-12 08:17:10
【问题描述】:

如何内联代码伪 css 类:悬停在 react material-ui 元素上?

这样的?

【问题讨论】:

  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: css reactjs hover


【解决方案1】:

我又在网上搜索了一些

https://mui.com/system/the-sx-prop/

<Paper sx={{
  '&:hover': {
    backgroundColor: "black",
  },
}}>
</Paper>

【讨论】:

    猜你喜欢
    • 2019-01-19
    • 1970-01-01
    • 2019-09-12
    • 1970-01-01
    • 2021-10-20
    • 1970-01-01
    • 1970-01-01
    • 2011-11-12
    • 1970-01-01
    相关资源
    最近更新 更多