jwenjian / ghiblog

GitHub Issues Blog, powered by GitHub Issues and GitHub Actions
https://1link.fun
352 stars 45 forks source link

CSS滤镜(filter)使用场景 #153

Open jwenjian opened 4 years ago

jwenjian commented 4 years ago

CSS的filter属性,可以为HTML元素加上滤镜效果。常用的滤镜效果:


html {
  filter: greyscale(1)
}
html {
  filter: blur(5px)
}
html {
  filter: opacity(0.5)
}