作者热门文章
- objective-c - iOS 5 : Can you override UIAppearance customisations in specific classes?
- iphone - 如何将 CGFontRef 转换为 UIFont?
- ios - 以编程方式关闭标记的信息窗口 google maps iOS
- ios - Xcode 5 - 尝试验证存档时出现 "No application records were found"
具有无效来源的图像在 Firefox 中显示替代文本,但在 chrome 中不显示,除非调整图像的宽度。
<img height="90" width="90"
src="http://www.google.com/intl/en_ALL/images/logos/images_logo_lg.gif"
alt="Image Not Found"/>
如何显示图片的替代文字?
最佳答案
如果我是对的,这是 webkit 中的错误(根据 this )。我不确定您是否可以做很多事情,很抱歉回答不力。
但是,您可以使用一种变通方法。如果您将 title
属性添加到您的图像(例如 title="Image Not Found"
),它将起作用。
关于html - 如何在 chrome 中显示图像的替代文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5386570/
我是一名优秀的程序员,十分优秀!