salut
comment je peut afficher une image dans une balise<textarea>
![]()
salut
comment je peut afficher une image dans une balise<textarea>
![]()
Bonjour
Grâce au css : en mettant ton image en arrière plan...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <title>test</title> <style type="text/css"> textarea { background-image: url(img1.jpg); } </style> </head> <body> <textarea>ton texte</textarea> </body> </html>
En html pur non, parce qu'il t'affichera le texte et non l'image...
Simple curiosité, pourquoi pas de css ?
Sinon une petite recherche sur google ou sur le forum javascript me fait penser que c'est possible avec ce dernier langage...
Partager