在图片元素< img>中显示一个。 [英] Display an .ico within an image element <img>
本文介绍了在图片元素< img>中显示一个。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在图片元素< img>
中显示.ico,但在Internet Explorer中,它无法正常显示。这是我的代码:
< img src =images.ico>
有人如何让它显示在所有浏览器中?
<在img标签中显示一个ico文件不能保证在所有浏览器中都能正常工作(我不会推荐它)。将ico文件转换为其他格式,如果您想在网络上显示它们。
I'm trying to display an .ico within an image element <img>
but in Internet Explorer it does not work/show. This is my code:
<img src="images.ico" >
Does anybody how to make it show up in all browsers?
解决方案
Displaying an ico file in an img tag is not guarenteed to work in all browsers(and i wouldn't recommend it). Convert the ico files to another format if you want to display them on the web.
这篇关于在图片元素< img>中显示一个。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文