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. <!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:0()</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="Benjamin Constant">
  9. <meta name="Description" content="Utilisation des filtres, Demo">
  10. <meta name="Reply-to" content="antoinehenri@becquerel.info">
  11. <meta name="Publisher" content="Becquerel">
  12. <meta name="Copyright" content="Antoine Henri Becquerel">
  13. <meta http-equiv="content-language" content="fr">
  14. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  15.  
  16. body {
  17. margin: 1px;
  18. padding: 1px;
  19. font-family: verdana;
  20. font-size: 19px;
  21. min-width: 642px;
  22. background:#FFFFFF;
  23. color:#000000;
  24. }
  25. </style>
  26.  
  27. </head>
  28.  
  29. <body>
  30. <h1>Exemple de filtre Alpha</h1>
  31. <div align="center">
  32. <img
  33. src="filter_0.gif"
  34. style="filter:Alpha(opacity=54, finishopacity=0, style=3)"
  35. width="125"
  36. height="174"
  37. alt="Exemple de filtre 0"
  38. border="0">
  39. </div>
  40. </body>
  41. </html>

Table des matières Haut

Exemple avec Blur()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <head>
  3. <title>filter:1()</title>
  4. <meta name="Author" lang="fr" content="John von Neumann">
  5. <meta name="Copyright" content="Charles Babbage">
  6. <meta http-equiv="content-language" content="fr">
  7. </head>
  8. <body>
  9. <h1>Exemple de filtre Blur</h1>
  10. <div align="center">
  11. <img
  12. src="filter_1.gif"
  13. style="filter:Blur(direction=45, strength=15)"
  14. width="159"
  15. height="110"
  16. alt="Exemple de filtre 1"
  17. border="0">
  18. </div>
  19. </body>
  20. </html>

Table des matières Haut

Exemple avec Chroma()

  1. <head>
  2. <title>filter:2()</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <meta http-equiv="pragma" content="no-cache">
  5. <meta name="Description" content="Utilisation des filtres, Demo">
  6. <meta name="Copyright" content="William Thomson">
  7. <meta http-equiv="content-language" content="fr">
  8. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  9.  
  10. body {
  11. margin: 1px;
  12. padding: 1px;
  13. font-family: verdana;
  14. font-size: 19px;
  15. min-width: 642px;
  16. background:#FFFFFF;
  17. color:#000000;
  18. }
  19. </style>
  20.  
  21. </head>
  22.  
  23. <body>
  24. <img
  25. style="filter:Chroma(color=#8470ff);"
  26. src="2Filter.jpg"
  27. align="center"
  28. width="105"
  29. height="99"
  30. alt="Chroma
  31. appliqu&eacute; &agrave; une image">
  32. <span style="width: 100%; filter:Chroma(color=#8470ff);">
  33. Chroma
  34. appliqu&eacute; &agrave; du texte
  35. </span>
  36. </body>
  37. </html>

Table des matières Haut

Exemple avec DropShadow()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <head>
  3. <title>filter:3()</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta name="Author" lang="fr" content="Erol Gelenbe">
  6. <meta name="Description" content="Utilisation des filtres, Demo">
  7. <meta name="Reply-to" content="kopernik.mikolaj@infobrol.com">
  8. <meta name="Publisher" content="Kopernik">
  9. <meta name="Copyright" content="Mikolaj Kopernik">
  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: 1px;
  15. padding: 1px;
  16. font-family: verdana;
  17. font-size: 19px;
  18. min-width: 642px;
  19. background:#FFFFFF;
  20. color:#000000;
  21. }
  22. </style>
  23.  
  24. </head>
  25.  
  26. <body>
  27. <form>
  28. <textarea id="test_textarea"
  29. style="filter:DropShadow(color=#DDBB99);"
  30. rows="4"
  31. cols="20">
  32. Mauris et orci. Aenean nec lorem. In porttitor. Donec laoreet
  33. nonummy augue. Suspendisse dui purus, scelerisque at, vulputate
  34. vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis
  35. eleifend. Ut nonummy. Fusce aliquet pede non pede.
  36. Suspendisse dapibus lorem pellentesque magna. Integer nulla.
  37. Donec blandit feugiat ligula. Donec hendrerit, felis et imperdiet
  38. euismod, purus ipsum pretium metus, in lacinia nulla nisl eget
  39. sapien. Donec ut est in lectus consequat consequat. Etiam eget
  40. dui. Aliquam erat volutpat. Sed at lorem in nunc porta tristique.
  41. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  42. Maecenas porttitor congue massa. Fusce posuere, magna sed
  43. pulvinar ultricies, purus lectus malesuada libero, sit amet
  44. commodo magna eros quis urna. Nunc viverra imperdiet enim.
  45. Fusce est. Vivamus a tellus. Pellentesque habitant morbi
  46. tristique senectus et netus et malesuada fames ac turpis
  47. egestas. Proin pharetra nonummy pede.
  48. type="button"
  49. name="btn1"
  50. value="Test"
  51. style="filter:DropShadow(color=#DDBB99);" />
  52. </form>
  53. </body>
  54. </html>

Table des matières Haut

Exemple avec FlipH()

  1. <head>
  2. <title>filter:4()</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <meta name="Reply-to" content="pasteur.louis@infobrol.edu">
  5. <meta name="Copyright" content="Louis Pasteur">
  6. <meta http-equiv="content-language" content="fr">
  7. </head>
  8. <body bgcolor="#FFFFFF" text="#000000">
  9. <img
  10. style="filter:FlipH();"
  11. src="4Filter.jpg"
  12. align="center"
  13. width="76"
  14. height="104"
  15. alt="FlipH
  16. appliqu&eacute; &agrave; une image">
  17. <span style="width: 100%; filter:FlipH();">
  18. FlipH
  19. appliqu&eacute; &agrave; du texte
  20. </span>
  21. </body>
  22. </html>

Table des matières Haut

Exemple avec FlipV()

  1. <head>
  2. <title>filter:5()</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <meta name="Author" lang="fr" content="Gordon Earle Moore">
  5. <meta name="Description" content="Utilisation des filtres, Demo">
  6. <meta name="Publisher" content="de Champeaux">
  7. <meta name="Copyright" content="Guillaume de Champeaux">
  8. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  9.  
  10. body {
  11. margin: 1px;
  12. padding: 1px;
  13. font-family: verdana;
  14. font-size: 19px;
  15. min-width: 642px;
  16. background:#FFFFFF;
  17. color:#000000;
  18. }
  19. </style>
  20.  
  21. </head>
  22.  
  23. <body>
  24. <h1>Exemple de filtre FlipV</h1>
  25. <div align="center">
  26. <img
  27. src="filter_5.gif"
  28. style="filter:FlipV()"
  29. width="190"
  30. height="106"
  31. alt="Exemple de filtre 5"
  32. border="0">
  33. </div>
  34. </body>
  35. </html>

Table des matières Haut

Exemple avec Glow()

  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:6()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta name="Description" content="Utilisation des filtres, Demo">
  8. <meta name="Reply-to" content="bacon.roger@infobrol.biz">
  9. <meta name="Publisher" content="Bacon">
  10. <meta name="Copyright" content="Roger Bacon">
  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: 0px;
  16. padding: 0px;
  17. font-family: verdana;
  18. font-size: 9px;
  19. min-width: 660px;
  20. }
  21. </style>
  22.  
  23. </head>
  24.  
  25. <body bgcolor="#FFFFFF" text="#000000">
  26. width:100%;
  27. padding:4px;
  28. font-size:49pt;
  29. color:blue;
  30. filter:Glow(strength=19, color=#DDBB99)">
  31. Exemples d'utilisation de filtres</p>
  32. </div>
  33.  
  34. <br />
  35. <br />
  36.  
  37. <tr valign="top">
  38. <td width="22%" height="218">
  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 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. <head>
  4. <title>filter:7()</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta http-equiv="pragma" content="no-cache">
  7. <meta name="Description" content="Utilisation des filtres, Demo">
  8. <meta name="Reply-to" content="kahn.philippe@infobrol.tk">
  9. <meta name="Copyright" content="Philippe Kahn">
  10. <meta http-equiv="content-language" content="fr">
  11. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  12. <body bgcolor="#FFFFFF" text="#000000">
  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. <head>
  3. <title>filter:8()</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta name="Reply-to" content="johannes@kepler.net">
  6. <meta name="Publisher" content="Kepler">
  7. <meta name="Copyright" content="Johannes Kepler">
  8. <meta http-equiv="content-language" content="fr">
  9. </head>
  10. <body bgcolor="#FFFFFF" text="#000000">
  11. width:100%;
  12. padding:20px;
  13. font-size:10pt;
  14. color:blue;
  15. filter:Invert()">
  16. Exemples d'utilisation de filtres</p>
  17. </div>
  18.  
  19. <br />
  20. <br />
  21.  
  22. <tr valign="top">
  23. <td width="22%" height="218">
  24. The quick brown fox jumped over the lazy dog.
  25. </td>
  26. <td width="21%">
  27. &nbsp;
  28. </td>
  29. <td width="57%">
  30. The quick brown fox jumped over the lazy dog.
  31. The quick brown fox jumped over the lazy dog.
  32. </td>
  33. </tr>
  34. </table>
  35.  
  36. </body>
  37. </html>

Table des matières Haut

Exemple avec Mask()

  1. <head>
  2. <title>filter:9()</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <meta http-equiv="pragma" content="no-cache">
  5. <meta name="Author" lang="fr" content="Max Planck">
  6. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  7. <meta name="Reply-to" content="machiavel.nicolas@gmail.com">
  8. <meta name="Publisher" content="Machiavel">
  9. <meta name="Copyright" content="Nicolas Machiavel">
  10. <meta http-equiv="content-language" content="fr">
  11. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  12. </head>
  13. <body>
  14. <h1>Exemple de filtre Mask</h1>
  15. width:100%; padding:11px; font-size:47pt; color:red;
  16. filter:9(color=#DDBB99)">
  17. Application de Mask(),
  18. texte avec Mask
  19. The quick brown fox jumped over the lazy dog.
  20. The quick brown fox jumped over the lazy dog.
  21. The quick brown fox jumped over the lazy dog.
  22. The quick brown fox jumped over the lazy dog.
  23. </div>
  24. </body>
  25. </html>

Table des matières Haut

Exemple avec Shadow()

  1. <head>
  2. <title>filter:10()</title>
  3. <meta name="Reply-to" content="hegel.georg@infobrol.edu">
  4. <meta name="Copyright" content="Georg Hegel">
  5. <meta http-equiv="content-language" content="fr">
  6. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  7. <body bgcolor="#FFFFFF" text="#000000">
  8. <img
  9. style="filter:Shadow(color=#DDBB99);"
  10. src="10Filter.jpg"
  11. align="center"
  12. width="113"
  13. height="116"
  14. alt="Shadow
  15. appliqu&eacute; &agrave; une image">
  16. <span style="width: 100%; filter:Shadow(color=#DDBB99);">
  17. Shadow
  18. appliqu&eacute; &agrave; du texte
  19. </span>
  20. </body>
  21. </html>

Table des matières Haut

Exemple avec Wave()

  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:11()</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="Marie Curie">
  9. <meta name="Description" content="Utilisation des filtres, Demo">
  10. <meta name="Reply-to" content="fourier.charles@infobrol.int">
  11. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  12. </head>
  13. <body>
  14. <h1>Exemple de filtre Wave</h1>
  15. <div align="center">
  16. <img
  17. src="filter_11.gif"
  18. style="filter:Wave(light=11, freq=19)"
  19. width="68"
  20. height="125"
  21. alt="Exemple de filtre 11"
  22. border="0">
  23. </div>
  24. </body>
  25. </html>

Table des matières Haut

Exemple avec XRay()

  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:12()</title>
  6. <meta name="Description" content="Utilisation des filtres, Demo">
  7. <meta name="Reply-to" content="galien.claude@infobrol.pro">
  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: 1px;
  13. padding: 1px;
  14. font-family: verdana;
  15. font-size: 19px;
  16. min-width: 642px;
  17. background:#FFFFFF;
  18. color:#000000;
  19. }
  20. </style>
  21.  
  22. </head>
  23.  
  24. <body>
  25. <img
  26. style="filter:XRay();"
  27. src="12Filter.jpg"
  28. align="center"
  29. width="85"
  30. height="81"
  31. alt="XRay
  32. appliqu&eacute; &agrave; une image">
  33. <span style="width: 100%; filter:XRay();">
  34. XRay
  35. appliqu&eacute; &agrave; du texte
  36. </span>
  37. </body>
  38. </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-blur.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