2011-07-13 72 views
0

为什么从我的网站http://allbusters.in图像不会在其他网站加载像http://jsfiddle.nethttp://jsbin.com不会在其他网站

这里是JSBin链接到检查显示。它显示来自另一个完全加载的网站的图像 http://jsbin.com/afahec

+1

你为什么要做''? ''没有结束标记。 – ceejayoz

+0

没关系。但为什么不加载。它是一些WP黑客? – shahalpk

+1

你有没有安装任何Wordpress扩展......比如说[Hotlink Prevention](http://wordpress.org/extend/plugins/wordpress-automatic-image-hotlink-protection/)? – Wylie

回答

1

有没有这样的事情</img>

删除它并妥善用/>关闭<img标签,然后出现你的形象:

<img src='http://www.lantiis.com/images/top.png' /> 
<img src='http://allbusters.in/wp-content/uploads/2011/07/facebook_32.png' /> 

http://jsbin.com/otayuy/

为什么?

由于不符合规范的代码是不可预知的。

+0

是的。有用。但我仍然不明白为什么? – shahalpk

+0

@Shahal Tharique:这很简单。符合规范的代码按预期工作不符合规范的代码无法使用或无法预测。 – Sparky

+0

然后请解释为什么会发生这种情况:[jsfiddle link](http://jsfiddle.net/P48Xe/)。这里的图像没有显示? – shahalpk