Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Jak zrobić, żeby IE korzystał z innego stylu niż Opera?
ujex
post 10.11.2006, 12:22:00
Post #1





Grupa: Zarejestrowani
Postów: 51
Pomógł: 1
Dołączył: 4.11.2006

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


Tak jak w temacie, tzn. Style mam w zewntrznym arkuszy i chciałbym, żeby każda przeglądarka korzystała z innego arkusza.
Go to the top of the page
+Quote Post
envp
post 10.11.2006, 12:57:27
Post #2





Grupa: Zarejestrowani
Postów: 359
Pomógł: 1
Dołączył: 16.04.2006
Skąd: Łódź

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


  1. #footer
  2. {
  3. margin-top: 7px;
  4. width: 828px;
  5. height: 35px;
  6. border-spacing: 0px;
  7. border-collapse: collapse;
  8. border: 0;
  9. }
  10.  
  11. /*\*/
  12. * html #footer
  13. {
  14. margin-top: -2px;
  15. width: 828px;
  16. height: 35px;
  17. border-spacing: 0px;
  18. border-collapse: collapse;
  19. border: 0;
  20. }


#footer widziane dla ff, opera, * html #footer widziane tylko dla ie
Go to the top of the page
+Quote Post
dr_bonzo
post 10.11.2006, 13:01:16
Post #3





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

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


Przerabane rozwiazanie, z kazda definicja trzeba hackowac, oba stylesheete sa umieszczone wjednym pliku, nie prosciej:

  1. <link rel="stylesheet" type="text/css" href="style-screen.css" media="screen" />
  2. <!--[if IE]><style type="text/css">@import "style-screen-msie.css";</style><![endif]-->


i tylko! IE zaladuje sobie ten drugi CSS ([if IE] mozna bardziej rozbudowac --> google) i nadpisze wszystkie definicje z pierwszego.


--------------------
Nie lubię jednorożców.
Go to the top of the page
+Quote Post
envp
post 10.11.2006, 13:05:49
Post #4





Grupa: Zarejestrowani
Postów: 359
Pomógł: 1
Dołączył: 16.04.2006
Skąd: Łódź

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


Prosciej, ale zazwyczaj nadpisuje sie maksymalnie kilka pozycji smile.gif

Pozdrawiam
Go to the top of the page
+Quote Post
Zajec
post 10.11.2006, 16:06:22
Post #5





Grupa: Zarejestrowani
Postów: 1 086
Pomógł: 8
Dołączył: 10.12.2003

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


Dla IE6:
Kod
* html element {}


Dla IE7:
Kod
*:first-child+html element {}


Dla IE6 i IE7
Kod
* html element, *:first-child+html element {}
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: 18.07.2025 - 01:39