首页 > 解决方案 > 透明 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>

有没有人可以找到这个奇怪问题的解决方案?

标签: javascripthtmlcss

解决方案


您无法使用 css 或 js 使其透明。这是一个图片旋转器。与椅子的图片有黑色背景。如果你去 DOM. 图片有黑色背景。

如果您可以修改图片本身,请将其中的黑色更改为透明。


推荐阅读