Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Hover tabela w tabeli
rad11
post
Post #1





Grupa: Zarejestrowani
Postów: 1 270
Pomógł: 184
Dołączył: 7.10.2012
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Mam taka strukture tabeli:

  1. <table id="users_sum_year" class="row-border hover order-column">
  2. <tr>
  3. <th>Data</th>
  4. <th>Suma obrotów</th>
  5. <th>Łaczna suma</th>
  6. </tr>
  7. </thead>
  8. <tr>
  9. <td></td>
  10. <td><table style="width:100%"><tr><td>cartman</td><td>Rysiek</td></tr></table></td>
  11. <td></td>
  12. </tr>
  13.  
  14. <tr>
  15. <td>2007</td>
  16. <td><table style="width:100%"><tr><td>100</td><td>200</td></tr></table></td>
  17. <td>300</td>
  18. </tr>
  19.  
  20. <tr>
  21. <td>2007-01</td>
  22. <td><table style="width:100%"><tr><td>&nbsp50</td><td>100</td></tr></table></td>
  23. <td>150</td>
  24. </tr>
  25.  
  26. <tr>
  27. <td>2007-02</td>
  28. <td><table style="width:100%"><tr><td>&nbsp50</td><td>100</td></tr></table></td>
  29. <td>150</td>
  30. </tr>
  31.  
  32. <tr>
  33. <td>2008</td>
  34. <td><table style="width:100%"><tr><td>100</td><td>200</td></tr></table></td>
  35. <td>300</td>
  36. </tr>
  37.  
  38. <tr>
  39. <td>2009</td>
  40. <td><table style="width:100%"><tr><td>100</td><td>200</td></tr></table></td>
  41. <td>300</td>
  42. </tr>
  43. </tbody>
  44. </table>

  1. table tbody tr:hover{
  2. cursor: pointer;
  3. background: #E6D7C6;
  4. }


Kiedy najezdzam otrzymuje taki efekt :

(IMG:http://s21.postimg.org/cikhdjq3r/image.png)

Jak zrobic aby caly rekord byl podswietlony?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
trueblue
post
Post #2





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

Ostrzeżenie: (0%)
-----


To Twój cały css? Szybki test na Chrome nie daje takich efektów.

Spróbuj tak:
Kod
table tbody tr:hover,
table tbody tr:hover *{
    background: #E6D7C6;
}


Ten post edytował trueblue 2.07.2015, 12:00:11
Go to the top of the page
+Quote Post
rad11
post
Post #3





Grupa: Zarejestrowani
Postów: 1 270
Pomógł: 184
Dołączył: 7.10.2012
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Jest ok
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 24.08.2025 - 04:18