【问题标题】:Google maps overlay image not entirely transparent [closed]谷歌地图覆盖图像不完全透明[关闭]
【发布时间】:2013-05-03 12:25:53
【问题描述】:

这是我的代码:

(链接已删除)

如您所见,叠加图像并非完全透明。当我在图片查看器中打开该图像时,透明度是完全的,而不是像在我的地图上渲染(洗白)那样。

我该如何解决这个问题?

【问题讨论】:

  • 由于短链接已损坏(无论如何它已被删除),这个问题需要关闭并删除。作为第一步,我将尝试关闭它。以后请不要破坏您的问题。

标签: image google-maps-api-3 overlay transparency


【解决方案1】:

这是一个 CSS 问题,应用的图像有一个背景颜色,为选择器定义

.post-body img, .post-body .tr-caption-container, .Profile img, .Image img, .BlogList .item-thumbnail img

您可以更改此 CSS 并使其更加清晰,以免影响图像,或将其添加到 TQOverlay.prototype.onAdd

img.style.background='transparent';
img.style.border='none';

【讨论】:

  • 成功了。非常感谢。我还以为是图片不行呢
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-06-01
  • 2013-03-02
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多