Je ne pense pas que ça ait sa place dans la FAQ, mais plus dans une catégorie "tips" :
Modifier la couleur de sélection avec Firefox
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 <div> texte texte texte texte texte texte texte texte texte texte texte texte texte texte </div> <p> texte texte texte texte texte texte texte texte texte texte texte texte texte texte </p> <span> texte texte texte texte texte texte texte texte texte texte texte texte texte texte </span>
URL de test : http://josselin.willette.free.fr/cod...ces/selection/ (faîtes un Ctrl+A pour voir toutes les couleurs)
Code css : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 div::-moz-selection { background:#f09; color:#fff; } p::-moz-selection { background:#f1980b; color:#fff; } span::-moz-selection { background:#ddd; color:#603; }
En CSS3 il y aura ::selection.
Partager