有没有办法改变我的material-ui AppBar组件的背景属性来模糊固定导航栏上的内容?
我试过滤镜: blur(0),但它并不像我想要的那样工作。我必须使用React/Styled-components/Material-UI在导航栏上获得这种效果
我已经在互联网上搜索了好几个小时了……我想,就像下面的链接一样,在这个应用程序栏下面模糊一下:https://codesandbox.io/s/mwbwd?file=/demo.js
发布于 2021-10-30 11:14:07
只需在添加了color="transparent"
的Appbar上添加sx={{backdropFilter:"blur(20px)"}}
即可。
像<AppBar color="transparent" sx={{backdropFilter:"blur(20px)"}}>
一样
https://stackoverflow.com/questions/67428830
复制相似问题