Filtre span()

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

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 name="Reply-to" content="cormen.thomas@infobrol.tk">
  8. <meta name="Copyright" content="Thomas Cormen">
  9. </head>
  10. <body bgcolor="#FFFFFF" text="#000000">
  11. <h1>Exemple de filtre Alpha</h1>
  12. <div align="center">
  13. <img
  14. src="filter_0.gif"
  15. style="filter:Alpha(opacity=66, finishopacity=0, style=3)"
  16. width="43"
  17. height="38"
  18. alt="Exemple de filtre 0"
  19. border="0">
  20. </div>
  21. </body>
  22. </html>

Table des matières Haut

Exemple avec Blur()

  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:1()</title>
  5. <meta name="Author" lang="fr" content="Bjarne Stroustrup">
  6. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  7. <meta name="Reply-to" content="stroustrup.bjarne@infobrol.edu">
  8. <meta name="Publisher" content="Stroustrup">
  9. <meta name="Copyright" content="Bjarne Stroustrup">
  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: 5px;
  16. font-family: verdana;
  17. font-size: 9px;
  18. min-width: 701px;
  19. background:#FFFFFF;
  20. color:#000000;
  21. }
  22. </style>
  23.  
  24. </head>
  25.  
  26. <body>
  27. <img
  28. style="filter:Blur(direction=180, strength=10);"
  29. src="1Filter.jpg"
  30. align="center"
  31. width="92"
  32. height="115"
  33. alt="Blur
  34. appliqu&eacute; &agrave; une image">
  35. <span style="width: 100%; filter:Blur(direction=180, strength=10);">
  36. Blur
  37. appliqu&eacute; &agrave; du texte
  38. </span>
  39. </body>
  40. </html>

Table des matières Haut

Exemple avec Chroma()

  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:2()</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta name="Author" lang="fr" content="Dennis Ritchie">
  7. <meta name="Reply-to" content="freud.sigmund@gmail.com">
  8. <meta name="Publisher" content="Freud">
  9. <meta name="Copyright" content="Sigmund Freud">
  10. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  11. <body bgcolor="#FFFFFF" text="#000000">
  12. <div style="width: 100%; filter:Chroma(color=#528b8b);">
  13. Ceci est un texte avec Chroma...
  14. </div>
  15. </body>
  16. </html>

Table des matières Haut

Exemple avec DropShadow()

  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:3()</title>
  6. <meta name="Author" lang="fr" content="Christopher Strachey">
  7. <meta name="Description" content="Utilisation des filtres, Demo">
  8. <meta name="Reply-to" content="stroustrup.bjarne@infobrol.edu">
  9. <meta name="Copyright" content="Bjarne Stroustrup">
  10. <meta http-equiv="content-language" content="fr">
  11. </head>
  12. <body bgcolor="#FFFFFF" text="#000000">
  13. <h1>Exemple de filtre DropShadow</h1>
  14. width:100%; padding:16px; font-size:17pt; color:red;
  15. filter:3(color=#cdc9a5)">
  16. Application de DropShadow(),
  17. texte avec DropShadow
  18. The quick brown fox jumped over the lazy dog.
  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. </div>
  23. </body>
  24. </html>

Table des matières Haut

Exemple avec FlipH()

  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:4()</title>
  6. <meta name="Description" content="Utilisation des filtres, Demo">
  7. <meta name="Reply-to" content="andrew@morton.net">
  8. <meta name="Publisher" content="Morton">
  9. <meta name="Copyright" content="Andrew Morton">
  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. <img
  14. style="filter:FlipH();"
  15. src="4Filter.jpg"
  16. align="center"
  17. width="116"
  18. height="113"
  19. alt="FlipH
  20. appliqu&eacute; &agrave; une image">
  21. <span style="width: 100%; filter:FlipH();">
  22. FlipH
  23. appliqu&eacute; &agrave; du texte
  24. </span>
  25. </body>
  26. </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="Moses Mendelssohn">
  5. <meta name="Reply-to" content="bernoulli.jean@infobrol.tk">
  6. <meta name="Publisher" content="Bernoulli">
  7. <meta name="Copyright" content="Jean Bernoulli">
  8. <meta http-equiv="content-language" content="fr">
  9. </head>
  10. <body>
  11. <h1>Exemple de filtre FlipV</h1>
  12. <div align="center">
  13. <img
  14. src="filter_5.gif"
  15. style="filter:FlipV()"
  16. width="101"
  17. height="43"
  18. alt="Exemple de filtre 5"
  19. border="0">
  20. </div>
  21. </body>
  22. </html>

Table des matières Haut

Exemple avec Glow()

  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:6()</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta name="Description" content="Utilisation des filtres, Demo">
  7. <meta name="Reply-to" content="antoine@cournot.org">
  8. <meta name="Publisher" content="Cournot">
  9. <meta name="Copyright" content="Antoine Cournot">
  10. <meta http-equiv="content-language" content="fr">
  11. </head>
  12. <body bgcolor="#FFFFFF" text="#000000">
  13. <div style="width: 100%; filter:Glow(color=#528b8b, strength=6);">
  14. Ceci est un texte avec Glow...
  15. </div>
  16. </body>
  17. </html>

Table des matières Haut

Exemple avec Gray()

  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:7()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="content-language" content="fr">
  8. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  9. </head>
  10. <body>
  11. <form>
  12. <textarea id="test_textarea"
  13. style="filter:Gray();"
  14. rows="9"
  15. cols="11">
  16. The quick brown fox jumped over the lazy dog.
  17. type="button"
  18. name="btn1"
  19. value="Test"
  20. style="filter:Gray();" />
  21. </form>
  22. </body>
  23. </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 http-equiv="pragma" content="no-cache">
  8. <meta name="Description" content="Utilisation des filtres, Demo">
  9. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  10. <meta name="Reply-to" content="moshe@bennahman.net">
  11. <meta name="Publisher" content="ben Nahman">
  12. <meta name="Copyright" content="Moshe ben Nahman">
  13. <meta http-equiv="content-language" content="fr">
  14. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  15. <body bgcolor="#FFFFFF" text="#000000">
  16. <h1>Exemple de filtre Invert</h1>
  17. width:100%; padding:14px; font-size:22pt; color:red;
  18. filter:8()">
  19. Application de Invert(),
  20. texte avec Invert
  21. The quick brown fox jumped over the lazy dog.
  22. The quick brown fox jumped over the lazy dog.
  23. The quick brown fox jumped over the lazy dog.
  24. The quick brown fox jumped over the lazy dog.
  25. </div>
  26. </body>
  27. </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="jacques@pitrat.info">
  10. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  11.  
  12. body {
  13. margin: 2px;
  14. padding: 12px;
  15. font-family: verdana;
  16. font-size: 12px;
  17. min-width: 785px;
  18. }
  19. </style>
  20.  
  21. </head>
  22.  
  23. <body bgcolor="#FFFFFF" text="#000000">
  24. <form>
  25. <textarea id="test_textarea"
  26. style="filter:Mask(color=#cdc9a5);"
  27. rows="3"
  28. cols="18">
  29. The quick brown fox jumped over the lazy dog.
  30. type="button"
  31. name="btn1"
  32. value="Test"
  33. style="filter:Mask(color=#cdc9a5);" />
  34. </form>
  35. </body>
  36. </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="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="pragma" content="no-cache">
  8. <meta name="Author" lang="fr" content="Linus Torvalds">
  9. <meta name="Description" content="Utilisation des filtres, Demo">
  10. <meta name="Reply-to" content="pascal.blaise@gmail.com">
  11. <meta name="Copyright" content="Blaise Pascal">
  12. <meta http-equiv="content-language" content="fr">
  13. </head>
  14. <body>
  15. <img
  16. style="filter:Shadow(direction=0, color=#528b8b);"
  17. src="10Filter.jpg"
  18. align="center"
  19. width="94"
  20. height="85"
  21. alt="Shadow
  22. appliqu&eacute; &agrave; une image">
  23. <span style="width: 100%; filter:Shadow(direction=0, color=#528b8b);">
  24. Shadow
  25. appliqu&eacute; &agrave; du texte
  26. </span>
  27. </body>
  28. </html>

Table des matières Haut

Exemple avec Wave()

  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: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="George Boole">
  9. <meta name="Publisher" content="Berners-Lee">
  10. <meta name="Copyright" content="Tim Berners-Lee">
  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: 1px;
  16. padding: 5px;
  17. font-family: verdana;
  18. font-size: 9px;
  19. min-width: 701px;
  20. background:#FFFFFF;
  21. color:#000000;
  22. }
  23. </style>
  24.  
  25. </head>
  26.  
  27. <body>
  28. width:100%;
  29. padding:10px;
  30. font-size:13pt;
  31. color:blue;
  32. filter:Wave(freq=16, light=26, phase=81, strength=5)">
  33. Exemples d'utilisation de filtres</p>
  34. </div>
  35.  
  36. <br />
  37. <br />
  38.  
  39. <tr valign="top">
  40. <td width="22%" height="218">
  41. The quick brown fox jumped over the lazy dog.
  42. The quick brown fox jumped over the lazy dog.
  43. </td>
  44. <td width="21%">
  45. &nbsp;
  46. </td>
  47. <td width="57%">
  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 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="pragma" content="no-cache">
  7. <meta name="Author" lang="fr" content="Edmund Burke">
  8. <meta name="Reply-to" content="johnvincent@atanasoff.org">
  9. <meta name="Publisher" content="Atanasoff">
  10. <meta name="Copyright" content="John Vincent Atanasoff">
  11. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  12.  
  13. body {
  14. margin: 1px;
  15. padding: 5px;
  16. font-family: verdana;
  17. font-size: 9px;
  18. min-width: 701px;
  19. background:#FFFFFF;
  20. color:#000000;
  21. }
  22. </style>
  23.  
  24. </head>
  25.  
  26. <body>
  27. <h1>Exemple de filtre XRay</h1>
  28. <div align="center">
  29. <img
  30. src="filter_12.gif"
  31. style="filter:XRay()"
  32. width="195"
  33. height="12"
  34. alt="Exemple de filtre 12"
  35. border="0">
  36. </div>
  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-gray.html/xhtml-rf-span.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