Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] submit - aktywny/nieaktywny - tło
lnn
post
Post #1





Grupa: Zarejestrowani
Postów: 361
Pomógł: 11
Dołączył: 17.12.2008
Skąd: LU

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


chcialem zapytac czy istnieje mozliwosc ustawienia w CSS dwoch opcji wygladu tła inputa
kiedy jest nieaktywne, lub aktywne
  1. <input class="inputwyslij" type="submit" name="send" disabled="disabled"value="" />
  2. .inputwyslij {
  3. background-image:url(images/inputwyslij.gif);
  4. background-color:transparent;
  5. border:0;
  6. width:90px;
  7. height:28px;
  8. }
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
mike
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


Jest taka możliwość w CSS 2.0. Selectors :: Matching attributes and attribute values
Kod
.inputwyslij {
    background-image:url(images/inputwyslij.gif);
}

.inputwyslij[disabled="disabled"] {
    background-image:url(images/inputwyslij_inne_tło.gif);
}
zapomnij jednak w wsparciu w badzIEwiu.
Go to the top of the page
+Quote Post

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 Aktualny czas: 19.08.2025 - 17:03