简体   繁体   中英

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:

.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.

Any suggestions?

Browsers sometimes have rendering problems with the CSS especially safari. Try to use -webkit-filter . It will solve your problem most likely. If not, please update me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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