gpt4 book ai didi

css - IE中的背景渐变和滤镜

转载 作者:行者123 更新时间:2023-11-28 16:18:17 25 4
gpt4 key购买 nike

为什么以下代码在 IE 中不起作用?

渐变代码在 IE 中不起作用

background: -webkit-linear-gradient(#0B282F, white);
background: -o-linear-gradient(#0B282F, white);
background: -moz-linear-gradient(#0B282F, white);
background: linear-gradient(#0B282F, white);

过滤器在 IE 中不起作用。

filter: drop-shadow(5px 5px 100px #fff);;
-webkit-filter: drop-shadow(5px 5px 100px #fff);
filter: drop-shadow(5px 5px 100px #fff);
-o-filter: drop-shadow(5px 5px 100px #fff);

最佳答案

引用:http://caniuse.com/#search=filterhttp://caniuse.com/#search=gradient

IE 9,8 不支持渐变。IE 11、9、8 不支持过滤器属性。在 EDGE 中,它需要在“启用 CSS 过滤器属性”标志下启用。

关于css - IE中的背景渐变和滤镜,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37314866/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com