javascript - 透明 360 度图像显示为黑色
问题描述
我们想使用一个程序,在 360 脚本中自动设置 24 张图片。程序很简单(也许很简单)因为把透明的png图片放到这个程序中后,输出无非是:
一个弹出窗口:
<a width="224" height="330" href="https://embed.imajize.com/2544759" target="imajize" onclick="window.open(this.href,'imajize','width='+this.getAttribute('width')+',height='+this.getAttribute('height')+',scrollbars=no,toolbar=no,status=no,resizable=no,menubar=no,location=no,directories=no,top=10,left=10');">360° View</a>
或 iframe:
<iframe width="224" height="330" src="https://embed.imajize.com/2544759" frameborder="0" scrolling="no" style="background-color: transparent; border: 0;" allowfullscreen></iframe>
有没有人可以找到这个奇怪问题的解决方案?
解决方案
您无法使用 css 或 js 使其透明。这是一个图片旋转器。与椅子的图片有黑色背景。如果你去 DOM. 图片有黑色背景。
如果您可以修改图片本身,请将其中的黑色更改为透明。
推荐阅读
- python - 如何在python中读取文件同一行中列出的多个输入数据
- javascript - How to simulate a swipe on click?
- c# - 是否可以配置 Visual Studio 2019 测试项目以发现特定文件夹中的测试播放列表?
- angular - 如何根据时间和日期显示项目
- javascript - 将文本从文件转换为 javascript 对象
- c# - 在后台线程中运行全局鼠标钩子
- javascript - 如何构建长度转换器
- java - 当 Java 不在顶部时,JDialog 不专注于 OSX
- android - 在 Android 9 上禁用强制门户检查
- zabbix - Windows 上的 Zabbix 远程命令