Filtre tr()

Impossible de trouver des informations à propos du filtre tr().

Information (14/02/2010)

J'avais réalisé cette page le 27/02/2003, dans la fougue de la découverte des possibilités du Web. Je laisse donc ces pages à titre d'information, mais avec le recul je ne suis pas du tout convaincu, car les différents filtres présentés ici ne sont valables que pour le navigateur Internet Explorer.

Exemple de syntaxe

  1. <img src="graphique.gif" style="FILTER: GLOW(color=blue, strength=4)">

Après les deux points suit l'appel au filtre par son nom et ses paramètres séparés par des virgules. Le tout entre parenthèses.
Si un filtre ne demande aucun paramètre, les parenthèses sont tout de même présentes (comme pour un appel de fonction).

Nous pouvons combiner plusieurs filtres pour un même élément, comme le montre l'exemple suivant.

  1. <img src="graphique.gif" style="filter:Blur(strength=50) FlipH();">

Table des matières Haut

Balises HTML sur lesquelles nous pouvons appliquer les filtres

BaliseApplication
BaliseApplication
bodyla totalité de la page affichée
buttonla surface pouvant être cliquée
divle passage en relation avec les mentions de feuilles de style width: et/ou height: et/ou position:
imgle graphique référencé
inputle champ de saisie
marqueele texte déroulant
spanle passage en relation avec les mentions de feuilles de style width: et/ou height: et/ou position:
tablele tableau
tdla cellule de données d'un tableau
textareale champ de saisie à plusieurs lignes
tfootle pied d'un tableau
thla rangée d'entête d'un tableau
theadl'entête d'un tableau
trla rangée d'un tableau

Exemples d'utilisation de filtres

Les exemples changent à chaque chargement de la page. Si vous désirez d'autres exemples, vous pouvez recharger la page.

Exemple avec Alpha()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <head>
  3. <title>filter:0()</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta http-equiv="pragma" content="no-cache">
  6. <meta name="Author" lang="fr" content="Max Weber">
  7. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  8. <meta name="Copyright" content="Michel Chevalier">
  9. <meta http-equiv="content-language" content="fr">
  10. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  11.  
  12. body {
  13. margin: 3px;
  14. padding: 20px;
  15. font-family: verdana;
  16. font-size: 14px;
  17. min-width: 704px;
  18. }
  19. </style>
  20.  
  21. </head>
  22.  
  23. <body bgcolor="#FFFFFF" text="#000000">
  24. <img
  25. style="filter:Alpha(opacity=59, finishopacity=0, style=0);"
  26. src="0Filter.jpg"
  27. align="center"
  28. width="94"
  29. height="90"
  30. alt="Alpha
  31. appliqu&eacute; &agrave; une image">
  32. <span style="width: 100%; filter:Alpha(opacity=59, finishopacity=0, style=0);">
  33. Alpha
  34. appliqu&eacute; &agrave; du texte
  35. </span>
  36. </body>
  37. </html>

Table des matières Haut

Exemple avec Blur()

  1. <head>
  2. <title>filter:1()</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <meta name="Description" content="Utilisation des filtres, Demo">
  5. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  6. <meta name="Reply-to" content="ludwig@feuerbach.org">
  7. <meta name="Publisher" content="Feuerbach">
  8. <meta name="Copyright" content="Ludwig Feuerbach">
  9. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  10.  
  11. body {
  12. margin: 3px;
  13. padding: 20px;
  14. font-family: verdana;
  15. font-size: 14px;
  16. min-width: 704px;
  17. }
  18. </style>
  19.  
  20. </head>
  21.  
  22. <body bgcolor="#FFFFFF" text="#000000">
  23. width:100%;
  24. padding:10px;
  25. font-size:28pt;
  26. color:blue;
  27. filter:Blur(direction=270, strength=16)">
  28. Exemples d'utilisation de filtres</p>
  29. </div>
  30.  
  31. <br />
  32. <br />
  33.  
  34. <tr valign="top">
  35. <td width="22%" height="218">
  36. The quick brown fox jumped over the lazy dog.
  37. The quick brown fox jumped over the lazy dog.
  38. The quick brown fox jumped over the lazy dog.
  39. The quick brown fox jumped over the lazy dog.
  40. </td>
  41. <td width="21%">
  42. &nbsp;
  43. </td>
  44. <td width="57%">
  45. The quick brown fox jumped over the lazy dog.
  46. The quick brown fox jumped over the lazy dog.
  47. The quick brown fox jumped over the lazy dog.
  48. The quick brown fox jumped over the lazy dog.
  49. The quick brown fox jumped over the lazy dog.
  50. </td>
  51. </tr>
  52. </table>
  53.  
  54. </body>
  55. </html>

Table des matières Haut

Exemple avec Chroma()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <head>
  3. <title>filter:2()</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta http-equiv="pragma" content="no-cache">
  6. <meta name="Author" lang="fr" content="Pierre Duhem">
  7. <meta name="Description" content="Utilisation des filtres, Demo">
  8. <meta name="Reply-to" content="edmond@halley.info">
  9. <meta name="Copyright" content="Edmond Halley">
  10. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  11. </head>
  12. <body>
  13. <form>
  14. <textarea id="test_textarea"
  15. style="filter:Chroma(color=#cdc9a5);"
  16. rows="15"
  17. cols="13">
  18. Mauris et orci. Aenean nec lorem. In porttitor. Donec laoreet
  19. nonummy augue. Suspendisse dui purus, scelerisque at, vulputate
  20. vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis
  21. eleifend. Ut nonummy. Fusce aliquet pede non pede.
  22. Suspendisse dapibus lorem pellentesque magna. Integer nulla.
  23. Donec blandit feugiat ligula. Donec hendrerit, felis et imperdiet
  24. euismod, purus ipsum pretium metus, in lacinia nulla nisl eget
  25. sapien. Donec ut est in lectus consequat consequat. Etiam eget
  26. dui. Aliquam erat volutpat. Sed at lorem in nunc porta tristique.
  27. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  28. Maecenas porttitor congue massa. Fusce posuere, magna sed
  29. pulvinar ultricies, purus lectus malesuada libero, sit amet
  30. commodo magna eros quis urna. Nunc viverra imperdiet enim.
  31. Fusce est. Vivamus a tellus. Pellentesque habitant morbi
  32. tristique senectus et netus et malesuada fames ac turpis
  33. egestas. Proin pharetra nonummy pede.
  34. type="button"
  35. name="btn1"
  36. value="Test"
  37. style="filter:Chroma(color=#cdc9a5);" />
  38. </form>
  39. </body>
  40. </html>

Table des matières Haut

Exemple avec DropShadow()

  1. <head>
  2. <title>filter:3()</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <meta http-equiv="pragma" content="no-cache">
  5. <meta name="Reply-to" content="kahn.philippe@gmail.com">
  6. <meta name="Publisher" content="Kahn">
  7. <meta name="Copyright" content="Philippe Kahn">
  8. <meta http-equiv="content-language" content="fr">
  9. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  10.  
  11. body {
  12. margin: 3px;
  13. padding: 0px;
  14. font-family: verdana;
  15. font-size: 17px;
  16. min-width: 716px;
  17. background:#FFFFFF;
  18. color:#000000;
  19. }
  20. </style>
  21.  
  22. </head>
  23.  
  24. <body>
  25. width:100%;
  26. padding:20px;
  27. font-size:37pt;
  28. color:blue;
  29. filter:DropShadow(color=#cdc9a5, offx=4, offy=2)">
  30. Exemples d'utilisation de filtres</p>
  31. </div>
  32.  
  33. <br />
  34. <br />
  35.  
  36. <tr valign="top">
  37. <td width="22%" height="218">
  38. The quick brown fox jumped over the lazy dog.
  39. The quick brown fox jumped over the lazy dog.
  40. The quick brown fox jumped over the lazy dog.
  41. </td>
  42. <td width="21%">
  43. &nbsp;
  44. </td>
  45. <td width="57%">
  46. The quick brown fox jumped over the lazy dog.
  47. The quick brown fox jumped over the lazy dog.
  48. The quick brown fox jumped over the lazy dog.
  49. The quick brown fox jumped over the lazy dog.
  50. </td>
  51. </tr>
  52. </table>
  53.  
  54. </body>
  55. </html>

Table des matières Haut

Exemple avec FlipH()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  4. <head>
  5. <title>filter:4()</title>
  6. <meta http-equiv="pragma" content="no-cache">
  7. <meta name="Description" content="Utilisation des filtres, Demo">
  8. <meta name="Reply-to" content="bennahman.moshe@gmail.com">
  9. <meta name="Publisher" content="ben Nahman">
  10. </head>
  11. <body>
  12. <img
  13. style="filter:FlipH();"
  14. src="4Filter.jpg"
  15. align="center"
  16. width="89"
  17. height="103"
  18. alt="FlipH
  19. appliqu&eacute; &agrave; une image">
  20. <span style="width: 100%; filter:FlipH();">
  21. FlipH
  22. appliqu&eacute; &agrave; du texte
  23. </span>
  24. </body>
  25. </html>

Table des matières Haut

Exemple avec FlipV()

  1. <!DOCTYPE html PUBLIC
  2. "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <head>
  5. <title>filter:5()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="pragma" content="no-cache">
  8. <meta name="Author" lang="fr" content="Miguel de Unamuno">
  9. <meta name="Reply-to" content="nygaard.kristen@infobrol.com">
  10. <meta name="Publisher" content="Nygaard">
  11. <meta http-equiv="content-language" content="fr">
  12. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  13.  
  14. body {
  15. margin: 3px;
  16. padding: 0px;
  17. font-family: verdana;
  18. font-size: 17px;
  19. min-width: 716px;
  20. background:#FFFFFF;
  21. color:#000000;
  22. }
  23. </style>
  24.  
  25. </head>
  26.  
  27. <body>
  28. <h1>Exemple de filtre FlipV</h1>
  29. <div align="center">
  30. <img
  31. src="filter_5.gif"
  32. style="filter:FlipV()"
  33. width="49"
  34. height="52"
  35. alt="Exemple de filtre 5"
  36. border="0">
  37. </div>
  38. </body>
  39. </html>

Table des matières Haut

Exemple avec Glow()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <head>
  3. <title>filter:6()</title>
  4. <meta http-equiv="pragma" content="no-cache">
  5. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  6. <meta name="Publisher" content="Rontgen">
  7. <meta name="Copyright" content="Wilhelm Rontgen">
  8. <meta http-equiv="content-language" content="fr">
  9. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  10.  
  11. body {
  12. margin: 3px;
  13. padding: 0px;
  14. font-family: verdana;
  15. font-size: 17px;
  16. min-width: 716px;
  17. background:#FFFFFF;
  18. color:#000000;
  19. }
  20. </style>
  21.  
  22. </head>
  23.  
  24. <body>
  25. <h1>Exemple de filtre Glow</h1>
  26. width:100%; padding:11px; font-size:23pt; color:red;
  27. filter:6(color=#528b8b)">
  28. Application de Glow(),
  29. texte avec Glow
  30. The quick brown fox jumped over the lazy dog.
  31. The quick brown fox jumped over the lazy dog.
  32. The quick brown fox jumped over the lazy dog.
  33. The quick brown fox jumped over the lazy dog.
  34. </div>
  35. </body>
  36. </html>

Table des matières Haut

Exemple avec Gray()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  4. <head>
  5. <title>filter:7()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="pragma" content="no-cache">
  8. <meta name="Author" lang="fr" content="Alexandre Popov">
  9. <meta name="Reply-to" content="bloch.ernst@gmail.com">
  10. <meta name="Publisher" content="Bloch">
  11. </head>
  12. <body>
  13. <div style="width: 100%; filter:Gray();">
  14. Ceci est un texte avec Gray...
  15. </div>
  16. </body>
  17. </html>

Table des matières Haut

Exemple avec Invert()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  4. <head>
  5. <title>filter:8()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta name="Author" lang="fr" content="Alessandro Volta">
  8. <meta name="Description" content="Utilisation des filtres, Demo">
  9. <meta name="Reply-to" content="bonnet.charles@infobrol.biz">
  10. <meta name="Copyright" content="Charles Bonnet">
  11. <meta http-equiv="content-language" content="fr">
  12. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  13. </head>
  14. <body>
  15. <div style="width: 100%; filter:Invert();">
  16. Ceci est un texte avec Invert...
  17. </div>
  18. </body>
  19. </html>

Table des matières Haut

Exemple avec Mask()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  4. <head>
  5. <title>filter:9()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="pragma" content="no-cache">
  8. <meta name="Description" content="Utilisation des filtres, Demo">
  9. <meta name="Reply-to" content="venn.john@infobrol.com">
  10. <meta name="Copyright" content="John Venn">
  11. <meta http-equiv="content-language" content="fr">
  12. </head>
  13. <body>
  14. <img
  15. style="filter:Mask(color=#cdc9a5);"
  16. src="9Filter.jpg"
  17. align="center"
  18. width="100"
  19. height="80"
  20. alt="Mask
  21. appliqu&eacute; &agrave; une image">
  22. <span style="width: 100%; filter:Mask(color=#cdc9a5);">
  23. Mask
  24. appliqu&eacute; &agrave; du texte
  25. </span>
  26. </body>
  27. </html>

Table des matières Haut

Exemple avec Shadow()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  4. <head>
  5. <title>filter:10()</title>
  6. <meta http-equiv="pragma" content="no-cache">
  7. <meta name="Author" lang="fr" content="Edwin Hubble">
  8. <meta name="Reply-to" content="franklin.benjamin@infobrol.pro">
  9. <meta name="Copyright" content="Benjamin Franklin">
  10. <meta http-equiv="content-language" content="fr">
  11. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  12.  
  13. body {
  14. margin: 3px;
  15. padding: 0px;
  16. font-family: verdana;
  17. font-size: 17px;
  18. min-width: 716px;
  19. background:#FFFFFF;
  20. color:#000000;
  21. }
  22. </style>
  23.  
  24. </head>
  25.  
  26. <body>
  27. <div style="width: 100%; filter:Shadow(direction=45, color=#cdc9a5);">
  28. Ceci est un texte avec Shadow...
  29. </div>
  30. </body>
  31. </html>

Table des matières Haut

Exemple avec Wave()

  1. <head>
  2. <title>filter:11()</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <meta name="Description" content="Utilisation des filtres, Demo">
  5. <meta name="Publisher" content="Zeiss">
  6. <meta name="Copyright" content="Carl Zeiss">
  7. <meta http-equiv="content-language" content="fr">
  8. </head>
  9. <body bgcolor="#FFFFFF" text="#000000">
  10. <h1>Exemple de filtre Wave</h1>
  11. <div align="center">
  12. <img
  13. src="filter_11.gif"
  14. style="filter:Wave(light=22, freq=37)"
  15. width="105"
  16. height="199"
  17. alt="Exemple de filtre 11"
  18. border="0">
  19. </div>
  20. </body>
  21. </html>

Table des matières Haut

Exemple avec XRay()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <head>
  3. <title>filter:12()</title>
  4. <meta name="Author" lang="fr" content="Wilbur Wright">
  5. <meta name="Description" content="Utilisation des filtres, Demo">
  6. <meta name="Reply-to" content="venn.john@infobrol.com">
  7. <meta name="Publisher" content="Venn">
  8. <meta name="Copyright" content="John Venn">
  9. <meta http-equiv="content-language" content="fr">
  10. </head>
  11. <body bgcolor="#FFFFFF" text="#000000">
  12. <img
  13. style="filter:XRay();"
  14. src="12Filter.jpg"
  15. align="center"
  16. width="115"
  17. height="106"
  18. alt="XRay
  19. appliqu&eacute; &agrave; une image">
  20. <span style="width: 100%; filter:XRay();">
  21. XRay
  22. appliqu&eacute; &agrave; du texte
  23. </span>
  24. </body>
  25. </html>

Table des matières Haut

Liste de filtres

#NomEffet
#NomEffet
0Alpha()effet de fusion de l'avant-plan et l'arrière-plan
1Blur()effet d'estompe
2Chroma()effet de couleur transparente
3DropShadow()effet d'ombrage
4FlipH()effet de symétrie sur axe horizontal
5FlipV()effet de symétrie sur axe vertical
6Glow()effet de bords flambants
7Gray()effet de nuances de gris
8Invert()effet d'inversion
9Mask()effet de masque transparent
10Shadow()effet d'ombres
11Wave()effet d'ondulation
12XRay()effet négatif photo

Afficher tous les filtres avec exemples.

Document créé le 27/02/2003, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/html-filtres-rf-all.html/xhtml-rf-tr.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Filtres : selfhtml (version 13/02/10)

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut