Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [html] Komentarze warunkowe IE
szczurek
post 2.04.2007, 14:29:54
Post #1





Grupa: Zarejestrowani
Postów: 59
Pomógł: 0
Dołączył: 1.10.2006
Skąd: Bydgoszcz

Ostrzeżenie: (10%)
X----


Witam, w sumie nie miałem dotąd takiego problemu. Potrzebuję zaimportować dodatkowy arkusz stylów dla IE6 ale dla IE 7 już nie bo tam zepsuje on wygląd strony(jest o.k. z podstawowym).

Kombinowałem już w różnych wersjach komentarzy warunkowych ale zawsze jest tak że arkusz jest importowany po prostu wtedy gdy jest to IE niezależnie od wersji.

Ostatnie kombinacje to:

  1. <!--[if (gte IE 6)&(lt IE 7)]>
  2. <link rel="stylesheet" type="text/css" href="styleIE.css" />
  3. <![endif]-->



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


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


Jeszcze kilka innych ale zawsze efekt jest ten sam, jak jest IE niezależnie od wersji to importowany jest arkusz.
Ma ktoś jakiś pomysł?


--------------------
"Nie masz żadnej szansy, ale ją wykorzystaj" Arthur Schopenhauer
wiersze
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
Maker3
post 7.04.2007, 17:52:24
Post #2





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 23.09.2006

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


spróbuj tak
Kod
<link rel="stylesheet" type="text/css" href="style.css" /> // dla wszystkich przeglądarek
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="style/ie.css" /> // dla ie
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style.css" /> // dla ie7, ten sam co dla wszystkich
<![endif]-->
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 Wersja Lo-Fi Aktualny czas: 19.07.2025 - 13:04