[英]Make alt tag display quicker
Is there anyway to get the alt tag to display quicker? 无论如何,有什么能让alt标签更快显示的?
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.
我知道我应该制作一个javascript工具提示,但是我正在寻找最少代码的真正精简版。
The alt attribute is meant to show up if the img is NOT shown. 如果未显示img,则显示alt属性。 You probably want to use the title attribute if you're specifying tooltips.
如果要指定工具提示,则可能要使用title属性。
How fast it displays is browser ( or OS ) dependent. 它显示的速度取决于浏览器(或OS)。 You can't control it with html or CSS.
您无法使用html或CSS对其进行控制。
A good alternative would be to program a javascript alternative with jQuery. 一个好的替代方法是用jQuery编程一个JavaScript替代方法。
See this page for some ideas: 请参阅此页面以获取一些想法:
http://jqueryfordesigners.com/coda-popup-bubbles/ http://jqueryfordesigners.com/coda-popup-bubbles/
The speed at which an alt tag displays is a function of the browser software and possibly OS-based settings. alt标签显示的速度取决于浏览器软件以及可能基于OS的设置。 You're only going to get a faster response with a custom script.
使用自定义脚本只会得到更快的响应。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.