使alt标签显示更快 [英] Make alt tag display quicker

查看:80
本文介绍了使alt标签显示更快的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有让alt标签显示得更快?

Is there anyway to get the alt tag to display quicker?

另外,我注意到它并没有在所有浏览器中显示。我知道我应该制作一个javascript工具提示,但我正在寻找一些非常精简的代码。

Also, I notice it doesn't show in all browsers. I know I should craft a javascript tooltip but I am looking for something really lite with minimal code.

推荐答案

alt 属性是为了显示img是否未显示。如果您要指定工具提示,则可能需要使用标题属性。

The alt attribute is meant to show up if the img is NOT shown. You probably want to use the title attribute if you're specifying tooltips.

它显示的速度是浏览器(或操作系统)依赖。你不能用html或CSS来控制它。

一个很好的选择是使用jQuery编写一个javascript替代方案。

A good alternative would be to program a javascript alternative with jQuery.

请参阅此页面以获取一些想法:

See this page for some ideas:

http://jqueryfordesigners.com/coda-popup-bubbles/

这篇关于使alt标签显示更快的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆