Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Closed TopicStart new topic
> [HTML] Problem ze stroną w FIrefoxie
sweter
post 2.07.2009, 13:15:27
Post #1





Grupa: Zarejestrowani
Postów: 623
Pomógł: 11
Dołączył: 1.01.2009
Skąd: Wrocław

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


Plik ze stroną zaczyna sie tak:

Kod
<?php
session_start();
echo "<!DOCTYPE html 
 PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
 \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"pl\" lang=\"pl\">
<head>
 <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-2\" />
 <link rel=\"stylesheet\" href=\"./style.css\" type=\"text/css\" />
 <title>".$tytul."</title>
</head>
<body>
<center>
 <div id=\"strona\">
     <div id=\"top\">
         top
     </div>
     <div id=\"middle\">
         <div id=\"kolumna_lewa\">
             kolumna lewa<br /><br /><br /><br />f
         </div>
         <div id=\"tresc\">
             tresc<br />
             tresc<br />
             tresc
         </div>
     </div>
     <div id=\"bottom\">
         bottom
     </div>
 </div>
</center>
</body>
</html>";

?>


W Operze i internet Explorerze 6 wszystko jest ok, tylko w Firefoxie w lewym górnym rogu strony wyświetla się

Cytat
ďťż


Czemu?


--------------------
Go to the top of the page
+Quote Post
viking
post 2.07.2009, 13:21:21
Post #2





Grupa: Zarejestrowani
Postów: 6 380
Pomógł: 1116
Dołączył: 30.08.2006

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


Poszukaj edytora który nie zapisuje BOM.


--------------------
Go to the top of the page
+Quote Post
Spawnm
post 2.07.2009, 13:21:38
Post #3





Grupa: Moderatorzy
Postów: 4 069
Pomógł: 497
Dołączył: 11.05.2007
Skąd: Warszawa




Bo masz kodowanie utf-8 z bom.
Zapisz jako utf-8 bez bom .
Go to the top of the page
+Quote Post
batman
post 2.07.2009, 13:22:14
Post #4





Grupa: Moderatorzy
Postów: 2 921
Pomógł: 269
Dołączył: 11.08.2005
Skąd: 127.0.0.1




Było setki razy. Poszukaj BOM.
Zamykam.


--------------------
I would love to change the world, but they won't give me the source code.
My software never has bugs. It just develops random features.
Go to the top of the page
+Quote Post

Closed 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: 14.08.2025 - 12:20