Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [CSS][HTML][PHP]Wywala niektóre tagi z <head>
Forum PHP.pl > Forum > Przedszkole
JulekJP
Witam, wykonuje od zera stronę dla treningu, wykonałem grafikę, zakodowałem w xhtml/css i js co można zobaczyć na http://gtamoding.pl/osk/
jak widać nawet w ie dobrze wyświetla.
Chce teraz przejść do korku "pisanie skryptu w php"
Na początek podzieliłem sobie że kod od top do menu jest w pliku header.php
boczne panele w sidebar.php
stopka w footer.php
A treść, czyli lista ofert i newsy są w index.php
W index również są funkcje które łączą w jedną całość:
  1. require("");

Cały plik index.php wygląda tak:
  1. <?php
  2. require("manicore.php");
  3. require("header.php");
  4. require("sidebar.php");
  5. ?>
  6. <div class="content">
  7. <div class="oferta_bg">
  8. <div id="loadarea"><img src="images/img-ofe-mini/podstawowy.png" width="390" height="144" alt="oferta"></div>
  9. <div class="oferta">
  10. <a href="#" rel="enlargeimage" rev="targetdiv:loadarea,link:#" title="images/img-ofe-mini/podstawowy.png"><img src="images/img_18.jpg" width="197" height="43" alt="Podstawowy"></a><br />
  11. <a href="#" rel="enlargeimage" rev="targetdiv:loadarea,link:#" title="images/img-ofe-mini/b-plus.png"><img src="images/img_20.jpg" width="197" height="42" alt="B plus"></a><br />
  12. <a href="#" rel="enlargeimage" rev="targetdiv:loadarea,link:#" title="images/img-ofe-mini/b-comfort.png"><img src="images/img_21.jpg" width="197" height="43" alt="B Comfort"></a><br />
  13. </div>
  14. <!-- koniec oferty --></div>
  15. <div class="opentable">
  16. <div class="opentable_title">
  17. <span>10.03.2011.r</span>
  18. <strong>Lorem Ipsum Dolor Web Site</strong>
  19. </div>
  20. <div class="opentable_text">
  21. <img src="images/image-news/01.jpg" width="151" height="98" alt="title" align="left" > Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the <a href="#">industry's</a> standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
  22. </div>
  23. <div class="opentable">
  24. <div class="opentable_title">
  25. <span>10.03.2011.r</span>
  26. <strong>Lorem Ipsum Dolor Web Site</strong>
  27. </div>
  28. <div class="opentable_text">
  29. <img src="images/image-news/01.jpg" width="151" height="98" alt="title" align="left" > Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the <a href="#">industry's</a> standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
  30. </div>
  31. <div class="opentable">
  32. <div class="opentable_title">
  33. <span>10.03.2011.r</span>
  34. <strong>Lorem Ipsum Dolor Web Site</strong>
  35. </div>
  36. <div class="opentable_text">
  37. <img src="images/image-news/01.jpg" width="151" height="98" alt="title" align="left" > Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the <a href="#">industry's</a> standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </div>
  38. </div>
  39. </div>
  40. <?php require("footer.php"); ?>


I tu jest mój problem w wyświetlaniu. W IE, mozilli i chrome wywala mi to z <head>
  1. <link href="style.css" rel="stylesheet" type="text/css">
  2. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
  3. <script type="text/javascript" src="include/thumbnailviewer2.js"></script>

do <body> a w operze jest idealnie.
Dlaczego tak się dzieje? na mojej stronie http://gtamoding.pl gdzie jest silnik Extreme Fusion jest ok.
Prosił bym o pomoc

DREEMus
u mnie na Firefox'ie 3.6 jest OK, sprawdź czy nie zmienisz sobie czegoś w jakimś dodatku do FF smile.gif
JulekJP
No a przeglądarki IE? Chrome?
emajl22
Cytat(JulekJP @ 5.02.2011, 09:12:14 ) *
No a przeglądarki IE? Chrome?


Również dobrze smile.gif
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.