徽标仅在 Safari 中显示
在过去的 40 分钟里,我一直在摸不着头脑,试图弄清楚为什么下面网站上的徽标只能在 Safari 中使用。
http://www.jaygeorge.co.uk/catalyst-jrshairdressing/
徽标应该在左上角。该网站是一个 WordPress 网站,我用来拖入徽标的代码位于此处:
<a href="<?php echo get_option('home'); ?>/"><img src="<?php bloginfo('template_directory') ?>/img/logo.png" alt="JR's Hairdressing" title="JR's Hairdressing" /></a>
如果将鼠标悬停在徽标上并复制图像链接,您将看到该链接是正确的。
I've been scratching my head for the last 40 minutes trying to figure out why the logo on the below site is only working in Safari.
http://www.jaygeorge.co.uk/catalyst-jrshairdressing/
The logo should be in the top left. The site is a WordPress site and the code I've used to drag in the logo is here:
<a href="<?php echo get_option('home'); ?>/"><img src="<?php bloginfo('template_directory') ?>/img/logo.png" alt="JR's Hairdressing" title="JR's Hairdressing" /></a>
If you hover over the logo and copy the image link you'll see that the link is correct.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来图像文件本身就是问题。尝试常规的坏图像故障排除方法:打开并重新保存它。确保它是 RGB。尝试用 gif 代替,等等。
Looks like the image file itself is the issue. Try the normal bad-image troubleshooting stuff: Open and resave it. Make sure it's RGB. Try a gif instead, etc.
很难说到底是什么导致了错误,但我发现在这种情况下,只需在 Paint/Photoshop/Gimp 中打开图像,重新保存并重新上传通常可以解决问题。
Hard to tell what's actually causing the error, but I've found in situations like this simply opening the image in Paint/Photoshop/Gimp, re-saving it and re-uploading usually fixes the problem.