jquery - 过滤反转在 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>
解决方案
此 Invert 过滤器的可能重复项在 IE 和 safari 上不起作用。您可以尝试接受的答案建议。
也尝试使用这个工具练习,https://caniuse.com/#feat=css-filters。
推荐阅读
- git - git rev-parse origin/branch_name 随机失败,并显示“致命:不明确的参数......未知的修订或路径不在工作树中”
- vue.js - Nuxt (SSR/Vuex):一旦所有组件都创建完成,就派发一个动作
- powershell - 替换数组的一个属性中的文本
- python - 在 Python 中将 for 循环转换为 map() 函数方法
- google-cloud-spanner - yugabytedb 如何保证垃圾回收时的快照一致?
- mysql - 连接两个表并使用 MySQL 连接对列求和
- android - 如何创建带有消息“您确定要删除它吗?”的窗口
- linux - mongod.service:控制进程退出,code=exited status=48
- reactjs - 反应错误甚至不做任何事情
- solana - solana-test-validator:没有这样的文件或目录恐慌