Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

高斯模糊 backdrop-filter: blur 在非 Chromium 内核上不被显示 #25

Closed
InariHimeko opened this issue Aug 28, 2021 · 2 comments
Closed
Labels
BUG 它不工作!

Comments

@InariHimeko
Copy link

问题出处:

2.0 版本高斯模糊

问题结果:

非 Chromium 内核浏览器不显示高斯模糊效果,截图在下面

预期结果:

不同浏览器相同效果

配置与环境:

  • 问题页面:
  • PHP 版本:
  • 数据库类型 / 版本:
  • Typecho 版本:1.1 (17.10.30)
  • 主题版本:2.0
  • 使用的插件:无
  • 浏览器: Safari, Firefox

截图(若有)

image

左中右分别为 Safari Firefox Edge,可见 Safari 和 Firefox 都无高斯模糊效果

补充信息:

问题应该出在 backdrop-filter: blur 仅在 Chromium 内核默认开启
Firefox 可以通过 config 开启但是默认关闭,现实中会开启的人应该非常少
Safari 则需要加前缀 -webkit-backdrop-filter

@InariHimeko InariHimeko added the BUG 它不工作! label Aug 28, 2021
@bhaoo
Copy link
Owner

bhaoo commented Aug 28, 2021

Firefox目前还不兼容backdrop-filter emmmm
Safari的话我去加个前缀 -webkit-backdrop-filter!

@bhaoo
Copy link
Owner

bhaoo commented Aug 29, 2021

修好啦!

你可以在“主题设置-高级设置-更多CSS”中添加下列代码解决问题哦!

.index-img-media:hover .index-card-filter {
  -webkit-backdrop-filter: blur(7px);
}

再修点BUG后续就整合到v2.0.1上啦!

@bhaoo bhaoo closed this as completed Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG 它不工作!
Projects
None yet
Development

No branches or pull requests

2 participants