Par |ben|, dimanche 16 janvier 2005 à 19:43 :: Web Développement :: #6 :: rss
PNG dans une fenètre IE
Vous ne le savez p't'etre pas, mais le format PNG pour les images web avec alpha est bien plus puissant (pour la conception de site web) que le vulgaire GIF...
Source : The PNG problem in Windows Internet Explorer
Source : The PNG problem in Windows Internet Explorer
Face à ce PNG, IE ne sait pas quoi faire et donc ne restitue pas l'alpha des images qui en contiennent. Voici donc ce remède [EN] au manque de IE pour avoir le PNG qui s'affiche convenablement.
The JS code can be seen if you do a "View Source" on the Solution page. There are two ways to use it - simple copy & paste or the JS include file method. Note that you must have height and width attributes specified for each image. Other attributes (class, alt, title & style) are optional so far as this routine is concerned, but are respected if specified. There is also a special version if you want to use imagemaps and/or form input images. (1) Copy & Paste For single page or occasional usage, copy the JS code in its entirety (from ) and paste it into your page somewhere in the the section. That's it. (2) JS Include File If you wish to use the code on multiples of pages, you may prefer to use a JS include file thus: Save the core JS routine - minus the Here is a demo page using the Include file method. This method is arguably better for use with multiples of pages, as it only requires three lines of code per page. The JS file is only 2KB in size and will be cached after the first download. It will therefore incur no further download overhead on subsequent pages. The download time should be around 0.3 seconds on an average 48kbps dial-up modem connection.Télécharger le fichier : pngfix.js
Article suivant de la même catégorie >> [Google] ou comment optimiser ses ...
Commentaires
Aucun commentaire pour le moment.
Ajouter un commentaire
Les commentaires pour ce billet sont fermés.