为什么alt中的html不显示文字?(why alt in html not display the text?)

系统教程 行业动态 更新时间:2024-06-14 16:59:17
为什么alt中的html不显示文字?(why alt in html not display the text?)

我知道如果只能显示图像,则alt属性用于显示文本。 我在谷歌浏览器中禁用查看图像并尝试以下代码,但不显示文本。 为什么?

<!DOCTYPE html> <html> <head>Hello</head> <body> <img src="raja.jpg" alt="This is image text" title="This is tool tip"> </body> </html>

I know alt attribute is used to display text if only image cannot be displayed. I disable viewing images in google chrome and try the below code but the text is not displayed. why?

<!DOCTYPE html> <html> <head>Hello</head> <body> <img src="raja.jpg" alt="This is image text" title="This is tool tip"> </body> </html>

最满意答案

这似乎是Webkit(浏览器引擎)的一个bug,他没有渲染属性alt,如何显示这个bug痕迹。

WebKit Bugzilla

It's seems a bug of Webkit (engine of browser), he doesn't render the attribute alt, how to show this bugs traces.

Chromium

WebKit Bugzilla

更多推荐

alt,text,html>,显示,电脑培训,计算机培训,IT培训"/> <meta name="descript

本文发布于:2023-04-16 14:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/aeb8d22b7c6b8e9bf8d15e93ea852b9f.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文字   html   alt   display   text

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!