Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML] Komentarze warunkowe - małe zakłopotanie !?
FliSs_tCv
post
Post #1





Grupa: Zarejestrowani
Postów: 198
Pomógł: 3
Dołączył: 27.02.2007
Skąd: Tczew

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


Mam pewne dręczące mnie pytanie składam stronę i używam przy tym komentarzy warunkowych aby IE6 i IE7 śmigało ale mam problem ponieważ mam wstawiony styl do IE6 a czyta go również IE7 a jeszcze go nie przygotowałem czy macie z tym jakieś doświadczenie może? bo muszę wywalać i instalować internet explorera co chwile aby patrzeć czy strona którą robie w IE6 za chwile się nie rozwaliła pod ie7 i na odwrót ;/ proszę o pomoc jeżeli takowej możecie udzielić pozdrawiam smile.gif

U mnie wygląda to tak: (może powinienem to inaczej zapisać ?! hmmm sad.gif)

  1. <!-- meta -->
  2.  
  3. <!--[if gte IE 6]>
  4. <link rel="stylesheet" type="text/css" href="css/ie6.css" />
  5. <![endif]-->
  6. <!--[if gte IE 7]>
  7. <link rel="stylesheet" type="text/css" href="css/ie7.css" />
  8. <![endif]-->
  9.  
  10. <!-- meta -->



------ EDIT ---------


Przepraszam za nie potrzebnego posta popełniłem błąd w zapisie dlatego tutaj podaje różne rozwiązania smile.gif

<!--[if IE]><p>You are using Internet Explorer.</p><![endif]-->
<![if !IE]><p>You are not using Internet Explorer.</p><![endif]>

<!--[if IE 7]><p>Welcome to Internet Explorer 7!</p><![endif]-->
<!--[if !(IE 7)]><p>You are not using version 7.</p><![endif]-->

<!--[if gte IE 7]><p>You are using IE 7 or greater.</p><![endif]-->
<!--[if (IE 5)]><p>You are using IE 5 (any version).</p><![endif]-->
<!--[if (gte IE 5.5)&(lt IE 7)]><p>You are using IE 5.5 or IE 6.</p><![endif]-->
<!--[if lt IE 5.5]><p>Please upgrade your version of Internet Explorer.</p><![endif]-->

<!--[if true]>You are using an <em>uplevel</em> browser.<![endif]-->
<![if false]>You are using a <em>downlevel</em> browser.<![endif]>

<!--[if true]><![if IE 7]><p>This nested comment is displayed in IE 7.</p><![endif]><![endif]-->


Ten post edytował FliSs_tCv 4.12.2007, 01:50:23


--------------------
Go to the top of the page
+Quote Post

Posty w temacie


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: 21.08.2025 - 05:55