Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> odzielny css dla ie i fx?
kidler
post
Post #1





Grupa: Zarejestrowani
Postów: 65
Pomógł: 0
Dołączył: 9.09.2006

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


Witam. Czy da się jakoś zrobić tak żeby css był pobierany w zależności od przeglądarki? Jak przerobić taki kawałek kodu?

  1. <style type="text/css" media="screen">
  2. @import url( <?php bloginfo('stylesheet_url'); ?> );
  3. </style>

Najlepiej żeby ogólnie był jeden css dla wszystkich rpzeglądarek ale jak ktoś wejdzie z internet exploler to żeby ten css for ie wczytało..

Ten post edytował kidler 26.08.2008, 09:44:53
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kidler
post
Post #2





Grupa: Zarejestrowani
Postów: 65
Pomógł: 0
Dołączył: 9.09.2006

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


jak wstawiłem
Kod
<p><!--[if IE]>
According to the conditional comment this is Internet Explorer<br />
<![endif]-->


to i pod ie się posypało i pod fx (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
a jak coś takiego zrobiłem to ie nie czyta tego stylu dla ie tylko tego standardowego (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)

Kod
<!--[if IE]>
    <style type="text/css" media="screen">
        @import url( [url="http://adres.pl/styleie.css);"]http://adres.pl/styleie.css);[/url]
    </style>
<![endif]-->
<style type="text/css" media="screen">
        @import url( <?php bloginfo('stylesheet_url'); ?> );
    </style>


Ten post edytował kidler 26.08.2008, 10:18:59
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: 6.10.2025 - 16:17