Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [css] warunek w css?
SN@JPER^
post
Post #1





Grupa: Zarejestrowani
Postów: 266
Pomógł: 0
Dołączył: 4.01.2007
Skąd: Szczecin

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


Witam.

Jest jakaś reguła warunków w css?

Coś w stylu, że jeśli game.li:hover to inna klasa też zmienia wartości.

Np.

  1. .all .menu_left ul li.games:hover{
  2.  
  3. background-color: #ffb10a;
  4. color: #000;
  5.  
  6. .all .menu_left ul li.games span.icon{
  7. background: url('../images/icon_games.png') no-repeat;
  8.  
  9. }
  10.  
  11. }


Ten post edytował SN@JPER^ 26.04.2015, 21:45:28
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Kshyhoo
post
Post #2





Grupa: Opiekunowie
Postów: 3 855
Pomógł: 317
Dołączył: 4.01.2005
Skąd: że




Cytat
[if {!} browser]
[if {!} browser version]
[if {!} condition browser version]

where:

! - indicates negation of the statement (i.e. NOT) - optional
browser - states which browser the statement targets
'IE' - Internet Explorer
'Gecko' - Gecko based browsers (Firefox, Camino etc)
'Webkit' - Webkit based browsers (Safari, Chrome, Shiira etc)
'SafMob' - Mobile Safari (iPhone / iPod Touch)
'Opera' - Opera's browser
'IEMac' - Internet Explorer for the Mac
'Konq' - Konqueror
'IEmob' - IE mobile
'PSP' - Playstation Portable
'NetF' - Net Front
version - which version of the browser in question should be considered
condition - arithmetic operator
lt - Less than
lte - Less than or equal to
eq - Equal to
gte - Greater than or equal to
gt - Greater then
Go to the top of the page
+Quote Post

Posty w temacie


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: 28.12.2025 - 06:34