带有外部(非图像)网址的图片代码

时间:2014-07-04 10:21:12

标签: ruby-on-rails

在Rails 4.1应用程序上,我需要插入带有下一个源URL结构的图像

<img src="http://example.com/link.html?param1=1234&param2=5678" />

将其置于空白的html文件中可以正常工作,它会从该网址中检索图像并显示它。但在我的rails应用程序中,它什么都没显示。

此外,Chrome Inspector并未将其视为图像,就像&#34;其他&#34;资源(html空白文件)

如何从该网址显示该图片?

谢谢!

更新 该行的输出是:

<img src="http://example.com/link.html?param1=1234&param2=5678" width="0" height="0" style="display: none !important; visibility: hidden !important; opacity: 0 !important; background-position: 1px 1px;">

<%= image_tag("http...") %>代码

几乎相同
<img alt="Link" src="http://example.com/link.html?param1=1234&param2=5678" style="display: none !important; visibility: hidden !important; opacity: 0 !important; background-position: 1px 1px;" width="0" height="0">

1 个答案:

答案 0 :(得分:0)

Ad-block阻止横幅广告。我甚至没想过......