Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Obrazek jako <label>
batman
post 1.02.2007, 09:20:01
Post #1





Grupa: Moderatorzy
Postów: 2 921
Pomógł: 269
Dołączył: 11.08.2005
Skąd: 127.0.0.1




Czy jest jakiś sposób, by obrazek <img> mógł być etykietą <label> w IE?

  1. <input type="radio" name="id" id="id_9" value="9" />
  2.  
  3. <label for="id_9">
  4. <img src="9.gif" alt="" />


Powyższy kod działa w FF, a w IE6 i IE7 działać nie chce.

edit
Szlag mnie trafi przez IE. Poddaję się. Użyłem JS. Jednak jeśli zna ktoś rozwiązanie (niepolegające na CSS hacks), będę wdzięczny.

Ten post edytował batman 1.02.2007, 09:58:15


--------------------
I would love to change the world, but they won't give me the source code.
My software never has bugs. It just develops random features.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 04:33