gpt4 book ai didi

html - 如何在 chrome 中显示图像的替代文本

转载 作者:技术小花猫 更新时间:2023-10-29 11:31:12 26 4
gpt4 key购买 nike

具有无效来源的图像在 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com