我的Google Play徽章未显示在我的网站上

时间:2014-07-23 10:12:07

标签: html

 a href="https://play.google.com/store/apps/details?id=appinventor.ai_fleimlehner.Drafinity&hl=en">
     <img alt="Get it on Google Play" src="/images/brand/en_generic_rgb_wo_60.png" />
 </a>

这是我不知道错误的代码,因为我从Google Play上的徽章生成器复制并粘贴了该代码。徽章没有显示但链接正常。

1 个答案:

答案 0 :(得分:1)

无论输入什么是可点击的,您的链接都会起作用,例如:

<a href="https://play.google.com/store/apps/details?id=appinventor.ai_fleimlehner.Drafinity&hl=en">
    wibble
</a>

图片元素(<img alt="Get it on Google Play" src="/images/brand/en_generic_rgb_wo_60.png" />)将无法使用,除非在images文件夹中的brand子文件夹中,您的图片名称为“en_generic_rgb_wo_60.png”< / p>

如果您想要更好的解释,您应该查看相对路径和绝对路径。 following link在IMG标签上非常有趣且详细。

您还可以做的是将图片网址添加到外部网站(但请注意某些网站会阻止此情况),例如:

<img alt="Get it on Google Play" src="http://cdn1.tnwcdn.com/files/2010/09/1-500x354.gif" />

如果图像停止在上面工作,请道歉,但您应该对您需要做的事情有一个大概的了解。找到图片的URL并使用它而不是路由字符串。

相关问题