Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

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

Open
jwenjian opened this issue Dec 14, 2019 · 0 comments
Open

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

jwenjian opened this issue Dec 14, 2019 · 0 comments

Comments

@jwenjian
Copy link
Owner

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


  • 页面变黑白
    image
html {
  filter: greyscale(1)
}
  • 背景高斯模糊
    image
html {
  filter: blur(5px)
}
  • 调整透明度
    image
html {
  filter: opacity(0.5)
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant