在Rails 4.1应用程序上,我需要插入带有下一个源URL结构的图像
<img src="http://example.com/link.html?param1=1234¶m2=5678" />
将其置于空白的html文件中可以正常工作,它会从该网址中检索图像并显示它。但在我的rails应用程序中,它什么都没显示。
此外,Chrome Inspector并未将其视为图像,就像&#34;其他&#34;资源(html空白文件)
如何从该网址显示该图片?
谢谢!
更新 该行的输出是:
<img src="http://example.com/link.html?param1=1234¶m2=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¶m2=5678" style="display: none !important; visibility: hidden !important; opacity: 0 !important; background-position: 1px 1px;" width="0" height="0">
答案 0 :(得分:0)
Ad-block阻止横幅广告。我甚至没想过......