0
点赞
收藏
分享

微信扫一扫

css 增加模糊遮罩效果

新鲜小饼干 2022-07-27 阅读 83

image.png

html

<div class="zhezhaox">
  <div class="zhezhaox2"></div>
</div>

css

.zhezhaox {
  position: relative;
  padding: 1px;
  .zhezhaox2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    z-index: 1000;
  }
}
举报

相关推荐

0 条评论