过滤器反转在IE中不起作用(Internet Explorer)

过滤器反转在IE(Internet Explorer)中不起作用

    <!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
</script>

<style>
    .normalColor {
        filter: invert(0%);
    }
    .invertedColor {
        filter: invert(100%);
    }
</style>
</head>

<body>
<U><b>Normal image</b></U><br>
<img id="home" src="image.png" alt="Smiley face" width="500" height="300" class="normalColor">
<br>
<U><b>Invert image</b></U><br>
<img id="home" src="image.png" alt="Smiley face" width="500" height="300" class="invertedColor">
</body>

</html>

image

zhaojun730730 回答:过滤器反转在IE中不起作用(Internet Explorer)

CSS过滤器仅在WebKit和Firefox中有效。它不适用于IE或Opera。 WebKit是目前唯一支持CSS过滤器的浏览器。

在IE中没有一种好的方法,因为它放弃了对旧版IE过滤器的支持。

,

Invert filter not working on IE and safari的可能重复项。您可以尝试接受的答案提出的建议。

也尝试使用https://caniuse.com/#feat=css-filters这个工具进行练习。

本文链接:https://www.f2er.com/3104804.html

大家都在问