css 增加一个模糊遮罩效果

css 增加一个模糊遮罩

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;
  }
}
posted @ 2022-07-21 06:54  wanjunshijie  阅读(216)  评论(0)    收藏  举报