Filtre div()

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

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 name="Reply-to" content="spengler.oswald@infobrol.tk">
  6. <meta name="Copyright" content="Oswald Spengler">
  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: 15px;
  13. font-family: verdana;
  14. font-size: 10px;
  15. min-width: 693px;
  16. }
  17. </style>
  18.  
  19. </head>
  20.  
  21. <body bgcolor="#FFFFFF" text="#000000">
  22. <img
  23. style="filter:Alpha(opacity=28, finishopacity=0, style=2);"
  24. src="0Filter.jpg"
  25. align="center"
  26. width="110"
  27. height="102"
  28. alt="Alpha
  29. appliqu&eacute; &agrave; une image">
  30. <span style="width: 100%; filter:Alpha(opacity=28, finishopacity=0, style=2);">
  31. Alpha
  32. appliqu&eacute; &agrave; du texte
  33. </span>
  34. </body>
  35. </html>

Table des matières Haut

Exemple avec Blur()

  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:1()</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="Alexander Fleming">
  9. <meta name="Reply-to" content="clark.david@infobrol.com">
  10. <meta name="Publisher" content="Clark">
  11. <meta name="Copyright" content="David Clark">
  12. <meta http-equiv="content-language" content="fr">
  13. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  14. </head>
  15. <body>
  16. <div style="width: 100%; filter:Blur(strength=13);">
  17. Ceci est un texte avec Blur...
  18. </div>
  19. </body>
  20. </html>

Table des matières Haut

Exemple avec Chroma()

  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:2()</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="nygaard.kristen@infobrol.edu">
  9. <meta name="Publisher" content="Nygaard">
  10. <meta name="Copyright" content="Kristen Nygaard">
  11. <meta http-equiv="content-language" content="fr">
  12. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  13. <body bgcolor="#FFFFFF" text="#000000">
  14. <form>
  15. <textarea id="test_textarea"
  16. style="filter:Chroma(color=#528b8b);"
  17. rows="5"
  18. cols="4">
  19. The quick brown fox jumped over the lazy dog.
  20. type="button"
  21. name="btn1"
  22. value="Test"
  23. style="filter:Chroma(color=#528b8b);" />
  24. </form>
  25. </body>
  26. </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 http-equiv="pragma" content="no-cache">
  6. <meta name="Reply-to" content="hopper.grace@infobrol.edu">
  7. <meta name="Copyright" content="Grace Hopper">
  8. <meta http-equiv="content-language" content="fr">
  9. </head>
  10. <body>
  11. width:100%;
  12. padding:13px;
  13. font-size:46pt;
  14. color:blue;
  15. filter:DropShadow(offx=3, offy=3)">
  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. The quick brown fox jumped over the lazy dog.
  26. The quick brown fox jumped over the lazy dog.
  27. The quick brown fox jumped over the lazy dog.
  28. </td>
  29. <td width="21%">
  30. &nbsp;
  31. </td>
  32. <td width="57%">
  33. The quick brown fox jumped over the lazy dog.
  34. The quick brown fox jumped over the lazy dog.
  35. The quick brown fox jumped over the lazy dog.
  36. The quick brown fox jumped over the lazy dog.
  37. The quick brown fox jumped over the lazy dog.
  38. </td>
  39. </tr>
  40. </table>
  41.  
  42. </body>
  43. </html>

Table des matières Haut

Exemple avec FlipH()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <head>
  3. <title>filter:4()</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta http-equiv="pragma" content="no-cache">
  6. <meta name="Publisher" content="Breguet">
  7. <meta http-equiv="content-language" content="fr">
  8. </head>
  9. <body>
  10. <img
  11. style="filter:FlipH();"
  12. src="4Filter.jpg"
  13. align="center"
  14. width="105"
  15. height="110"
  16. alt="FlipH
  17. appliqu&eacute; &agrave; une image">
  18. <span style="width: 100%; filter:FlipH();">
  19. FlipH
  20. appliqu&eacute; &agrave; du texte
  21. </span>
  22. </body>
  23. </html>

Table des matières Haut

Exemple avec FlipV()

  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:5()</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta http-equiv="pragma" content="no-cache">
  7. <meta name="Reply-to" content="thomas@cormen.org">
  8. <meta name="Copyright" content="Thomas Cormen">
  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: 1px;
  14. padding: 15px;
  15. font-family: verdana;
  16. font-size: 10px;
  17. min-width: 693px;
  18. }
  19. </style>
  20.  
  21. </head>
  22.  
  23. <body bgcolor="#FFFFFF" text="#000000">
  24. <img
  25. style="filter:FlipV();"
  26. src="5Filter.jpg"
  27. align="center"
  28. width="117"
  29. height="75"
  30. alt="FlipV
  31. appliqu&eacute; &agrave; une image">
  32. <span style="width: 100%; filter:FlipV();">
  33. FlipV
  34. appliqu&eacute; &agrave; du texte
  35. </span>
  36. </body>
  37. </html>

Table des matières Haut

Exemple avec Glow()

  1. <head>
  2. <title>filter:6()</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="Francis Bacon">
  6. <meta name="Reply-to" content="bohr.niels@infobrol.biz">
  7. <meta name="Copyright" content="Niels Bohr">
  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: 15px;
  14. font-family: verdana;
  15. font-size: 10px;
  16. min-width: 693px;
  17. }
  18. </style>
  19.  
  20. </head>
  21.  
  22. <body bgcolor="#FFFFFF" text="#000000">
  23. <img
  24. style="filter:Glow(color=#8470ff);"
  25. src="6Filter.jpg"
  26. align="center"
  27. width="86"
  28. height="119"
  29. alt="Glow
  30. appliqu&eacute; &agrave; une image">
  31. <span style="width: 100%; filter:Glow(color=#8470ff);">
  32. Glow
  33. appliqu&eacute; &agrave; du texte
  34. </span>
  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 name="Description" content="Utilisation des filtres, Demo">
  8. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  9. <meta name="Reply-to" content="bacon.roger@infobrol.biz">
  10. <meta name="Publisher" content="Bacon">
  11. <meta name="Copyright" content="Roger Bacon">
  12. <meta http-equiv="content-language" content="fr">
  13. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  14. <body bgcolor="#FFFFFF" text="#000000">
  15. <form>
  16. <textarea id="test_textarea"
  17. style="filter:Gray();"
  18. rows="16"
  19. cols="16">
  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. type="button"
  24. name="btn1"
  25. value="Test"
  26. style="filter:Gray();" />
  27. </form>
  28. </body>
  29. </html>

Table des matières Haut

Exemple avec Invert()

  1. <head>
  2. <title>filter:8()</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="raskin.jef@gmail.com">
  6. <meta name="Publisher" content="Raskin">
  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: 3px;
  12. padding: 5px;
  13. font-family: verdana;
  14. font-size: 17px;
  15. min-width: 682px;
  16. background:#FFFFFF;
  17. color:#000000;
  18. }
  19. </style>
  20.  
  21. </head>
  22.  
  23. <body>
  24. width:100%;
  25. padding:3px;
  26. font-size:14pt;
  27. color:blue;
  28. filter:Invert()">
  29. Exemples d'utilisation de filtres</p>
  30. </div>
  31.  
  32. <br />
  33. <br />
  34.  
  35. <tr valign="top">
  36. <td width="22%" height="218">
  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. 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. The quick brown fox jumped over the lazy dog.
  51. </td>
  52. </tr>
  53. </table>
  54.  
  55. </body>
  56. </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. <head>
  4. <title>filter:9()</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="jean@bodin.org">
  9. <meta name="Publisher" content="Bodin">
  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: 5px;
  16. font-family: verdana;
  17. font-size: 17px;
  18. min-width: 682px;
  19. background:#FFFFFF;
  20. color:#000000;
  21. }
  22. </style>
  23.  
  24. </head>
  25.  
  26. <body>
  27. <img
  28. style="filter:Mask(color=#528b8b);"
  29. src="9Filter.jpg"
  30. align="center"
  31. width="75"
  32. height="82"
  33. alt="Mask
  34. appliqu&eacute; &agrave; une image">
  35. <span style="width: 100%; filter:Mask(color=#528b8b);">
  36. Mask
  37. appliqu&eacute; &agrave; du texte
  38. </span>
  39. </body>
  40. </html>

Table des matières Haut

Exemple avec Shadow()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <head>
  3. <title>filter:10()</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta http-equiv="pragma" content="no-cache">
  6. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  7. <meta name="Reply-to" content="venn.john@infobrol.int">
  8. <meta name="Copyright" content="John Venn">
  9. </head>
  10. <body bgcolor="#FFFFFF" text="#000000">
  11. width:100%;
  12. padding:10px;
  13. font-size:12pt;
  14. color:blue;
  15. filter:Shadow(direction=225, color=#528b8b)">
  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. The quick brown fox jumped over the lazy dog.
  26. </td>
  27. <td width="21%">
  28. &nbsp;
  29. </td>
  30. <td width="57%">
  31. The quick brown fox jumped over the lazy dog.
  32. The quick brown fox jumped over the lazy dog.
  33. </td>
  34. </tr>
  35. </table>
  36.  
  37. </body>
  38. </html>

Table des matières Haut

Exemple avec Wave()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <head>
  3. <title>filter:11()</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="Claude Shannon">
  7. <meta name="Reply-to" content="newton.isaac@infobrol.edu">
  8. <meta http-equiv="content-language" content="fr">
  9. </head>
  10. <body>
  11. <div style="width: 100%; filter:Wave(light=27, freq=25);">
  12. Ceci est un texte avec Wave...
  13. </div>
  14. </body>
  15. </html>

Table des matières Haut

Exemple avec XRay()

  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:12()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta name="Author" lang="fr" content="Ernst Bloch">
  8. <meta name="Description" content="Utilisation des filtres, Demo">
  9. <meta name="Reply-to" content="bentham.jeremy@infobrol.biz">
  10. <meta name="Publisher" content="Bentham">
  11. <meta name="Copyright" content="Jeremy Bentham">
  12. <meta http-equiv="content-language" content="fr">
  13. </head>
  14. <body bgcolor="#FFFFFF" text="#000000">
  15. <img
  16. style="filter:XRay();"
  17. src="12Filter.jpg"
  18. align="center"
  19. width="76"
  20. height="106"
  21. alt="XRay
  22. appliqu&eacute; &agrave; une image">
  23. <span style="width: 100%; filter:XRay();">
  24. XRay
  25. appliqu&eacute; &agrave; du texte
  26. </span>
  27. </body>
  28. </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-chroma.html/xhtml-rf-div.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