网站首页 > 知识剖析 正文
方案一
body {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
}
方案二
html {
background: #ffffff;
position: relative;
}
html::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
z-index: 999;
mix-blend-mode: color;
background: rgba(0, 0, 0, 0.5);
}
猜你喜欢
- 2025-09-12 在 JAVASCRIPT 中创建 HTML 元素...
- 2025-09-12 不来看看这些 VUE 的生命周期钩子函数?| 原力计划
- 2025-09-12 模仿 youtube 迷你顶部进度条NProgress
- 2025-09-12 国外越来越多的“自拍死”:为一张美照几个赞丢命,值得么?
- 2025-09-12 CSS视觉格式化模型,你真的了解么?
- 2025-09-12 VR×GBA | From Mazu to the World: The Man Who Carved the City
- 2025-09-12 CSS面试题汇总_div css面试题
- 2025-09-12 Next.js 实战 (五):添加路由 Transition 过渡效果和 Loading 动画
- 2025-09-12 CSS :has()伪类:2025年最值得掌握的前端黑科技
- 2025-09-12 css权重及优先级规则_css权重顺序
- 最近发表
- 标签列表
-
- xml (46)
- css animation (57)
- array_slice (60)
- htmlspecialchars (54)
- position: absolute (54)
- datediff函数 (47)
- array_pop (49)
- jsmap (52)
- toggleclass (43)
- console.time (63)
- .sql (41)
- ahref (40)
- js json.parse (59)
- html复选框 (60)
- css 透明 (44)
- css 颜色 (47)
- php replace (41)
- css nth-child (48)
- min-height (40)
- xml schema (44)
- css 最后一个元素 (46)
- location.origin (44)
- table border (49)
- html tr (40)
- video controls (49)