简体   繁体   English

背景过滤器不使用 Safari 渲染

[英]backdrop-filter doesn't render with Safari

I have a simple header in a section named "navigation":我在名为“导航”的部分中有一个简单的标题:

<section class="navigation">
    <header>
        ...
    </header>
</section>

The CSS filed linked contains this:链接的 CSS 文件包含以下内容:

.navigation header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    backdrop-filter: blur(40px);
}

The grid is used to align three icons.网格用于对齐三个图标。 The first is for a burger menu, the second is the logo and the last one is an action "Book Now".第一个是汉堡菜单,第二个是徽标,最后一个是“立即预订”动作。

It renders perfectly on Google Chrome but with Safari it doesn't work at all.它在谷歌浏览器上完美呈现,但在 Safari 上它根本不起作用。

Any suggestions?有什么建议么?

Browsers sometimes have rendering problems with the CSS especially safari.浏览器有时会出现 CSS 渲染问题,尤其是 safari。 Try to use -webkit-filter .尝试使用-webkit-filter It will solve your problem most likely.它最有可能解决您的问题。 If not, please update me.如果没有,请更新我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM