html - Chrome 中的其他 DOM css 淡出出现模糊图像的“白色边框”。如何避免这种情况?
问题描述
我的应用中有一个模糊的背景图像覆盖。如果您曾经处理过它,您应该知道图像的模糊边界与背景颜色重叠。为了避免这种情况,我使用了变换比例技巧。每当页面上发生任何不透明度转换(淡入淡出)时,背景叠加层都会被重绘或某些东西和白色边框再次出现半秒。但它不会在 Firefox 中发生。有什么解决方法吗?
我的最终覆盖 div css 规则是
div.overlay {
position: fixed;
left: 0; right: 0; top: 0; bottom: 0;
margin: auto;
z-index: -1;
filter: blur(15px);
background-position: center;
background-size: 90%;
transform: scale(1.2);
}
这是带有 2 个下拉菜单和一个模式的示例应用程序的小提琴。只需尝试打开然后关闭它们
解决方案
推荐阅读
- mysql - 如何在 gorm v2 上设置 SQL 连接配置
- python - 在 python 中使用 scikit-learn 预测每月时间序列的任何方法?
- php - 如何在wordpress的博客列表页面上添加静态文本?
- elixir - "many_to_many" 如果外键之一是唯一字符串
- html - 试图创建一个按钮来滚动到 al 元素,但脚本不起作用
- javascript - 提交按钮不起作用!点击它甚至没有console.log
- azure-api-management - 带有 API 管理的 Azure Redis 缓存
- algorithm - 基数排序和桶/箱排序是自适应的吗?
- c++ - 如何在 Qt 中循环控制多个小部件?
- ruby-on-rails - Minitest——如何查看失败的测试