Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Style pod różne przeglądarki
cycu11
post
Post #1





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 21.08.2010

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


Mianowicie. Jak podpiąć styl, żeby akurat się wyświetlał akurat na tej przeglądarce ? Bo napisałem strone i inaczej mi się wyświetla na Google Chrome a inaczej na Firefox. ;p
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
webfreak
post
Post #2





Grupa: Zarejestrowani
Postów: 77
Pomógł: 8
Dołączył: 29.03.2011
Skąd: Londyn

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


Tylko dla IE

  1. <!--[if IE]>
  2. <link rel="stylesheet" type="text/css" href="tylko_ie.css" />
  3. <![endif]-->


Dla wszystkich innych oprocz IE

  1. <![if !IE]>
  2. <link rel="stylesheet" type="text/css" href="style.css" />
  3. <![endif]>


IE7

  1. <![if IE 7]>
  2. <link rel="stylesheet" type="text/css" href="ie_7.css" />
  3. <![endif]>


IE6

  1. <![if IE 6]>
  2. <link rel="stylesheet" type="text/css" href="ie_6.css" />
  3. <![endif]>


IE5

  1. <![if IE 5]>
  2. <link rel="stylesheet" type="text/css" href="ie_5.css" />
  3. <![endif]>


IE5.5

  1. <![if IE 5.5000]>
  2. <link rel="stylesheet" type="text/css" href="ie_55.css" />
  3. <![endif]>


Wszystkie ponizej IE6

  1. <!--[if lt IE 7]>
  2. <link rel="stylesheet" type="text/css" href="ie_lt_6.css" />
  3. <![endif]-->



Jesli nie chcesz dla kazdej przegladarki tworzyc nowego pliku css mozesz uzyc klas CSS

IE7

  1. *+html #div {
  2. height: 100px;
  3. }


Dla wszystkich innych oprocz IE

  1. #div {
  2. _height: 100px;
  3. }


Ukryj klase dla IE6

  1. html > body #div {
  2. height: 100px;
  3. }


IE6 i nizej

  1. * html #div {
  2. height: 100px;
  3. }




Zrodlo



Ten post edytował webfreak 25.11.2011, 15:38:35
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: 13.10.2025 - 22:09