Make alt tag display quicker

2019-02-27 11:50发布

问题:

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

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.

回答1:

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.

How fast it displays is browser ( or OS ) dependent. You can't control it with html or CSS.

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

See this page for some ideas:

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



回答2:

The speed at which an alt tag displays is a function of the browser software and possibly OS-based settings. You're only going to get a faster response with a custom script.



回答3:

You can use Tooltips to show the Title Attribute faster and nicer :) Not Alt...

Here is a good Tutorial with more than 25 examples...