当在 img 标签中使用 ico 文件作为 src 时,我在 Firefox 中遇到了下一个奇怪的行为。 当它在 Firefox(最新版本)中打开时,尽管 ico 原始格式为 128x128,但它具有 16x16 格式。 在其他浏览器(Chrome、IE)中一切正常。 只需在 Chrome 和 Firefox 中打开 elephant-128x128.ico,您就会看到不同之处。
<img height='128' src="http://icons.iconseeker.com/ico/cloth-dolls-icons/elephant-128x128.ico">
https://jsfiddle.net/qwx2sxzg/1/
或者 http://icons.iconseeker.com/ico/cloth-dolls-icons/elephant-128x128.ico 有人知道如何解决这个问题吗?
最佳答案
关于html - 在 img 标签中使用 .ico,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30932591/