Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]Problem z wyświetlaniem się strony na IE
Dingo
post 10.10.2009, 14:12:36
Post #1





Grupa: Zarejestrowani
Postów: 26
Pomógł: 0
Dołączył: 27.05.2009

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


2 problemy z IE. Pierwszy:

Strona http://optimalcal.pl/index.php wyświetla się po lewej zamiast na środku oraz jak widać newsy mają gdzieś błąd chyba sad.gif, bo w HTMLu czysty szablon działa poprawie ;(

Tak to wyglądało oryginalne w szablonie:
  1. <div id="content">
  2. <div class="post">
  3. <h2 class="title"><a href="#">Tytuł newsa</a></h2>
  4. <div class="entry"> <img src="images/img06.jpg" alt="" width="138" height="93" class="left" />
  5. <p>This is <strong>Pluralism</strong>, a free, fully
  6. standards-compliant CSS template designed by <a href="http://www.nodethirtythree.com/">
  7. NodeThirtyThree</a> for <a href="http://www.freecsstemplates.org/">
  8. Free CSS Templates</a>, released for free under the <a href="http://creativecommons.org/licenses/by/2.5/">
  9. Creative Commons Attribution 2.5</a> license. The photos
  10. in this design are from <a href="http://www.pdphoto.org/">
  11. PDPhoto.org</a>. You're free to use this template for
  12. anything as long as you link back to <a href="http://www.freecsstemplates.org/">
  13. my site</a>. Enjoy :)</p>
  14. </div>
  15. <p class="meta"> <span class="posted">Dodał '.$wiersz[3].'
  16. dnia '.$wiersz[4].'</span>&nbsp; </p>
  17. </div>
  18. <div class="post">
  19. <h2 class="title"><a href="#">Sapien sed varius</a></h2>
  20. <div class="entry">
  21. <p>Morbi sit amet mauris. Nam vitae nibh eu sapien dictum pharetra. Vestibulum elementum neque vel lacus. Proin auctor dolor et massa. Phasellus sit amet velit. Vestibulum vel lacus vitae tortor consectetuer sapien semper dictum. Integer est felis, facilisis quis, lacinia sed, lacinia et, augue. Vivamus ultrices lacinia urna. Proin varius sollicitudin nunc. Vivamus condimentum, dui nec imperdiet porta, odio risus molestie nisl, nec laoreet purus sapien a massa.</p>
  22. </div>
  23. <p class="meta"> <span class="posted">Posted by <a href="#">Someone</a> on December 13, 2007</span>&nbsp; </p>
  24. </div>
  25. </div>
  26. <!-- end #content -->


  1. <div id="content">';
  2. $zapytanie = "SELECT * FROM newsy ORDER BY id DESC LIMIT 3";
  3. $idzapytania = mysql_query($zapytanie);
  4. while ($wiersz = mysql_fetch_row($idzapytania))
  5. {
  6. echo ' <div class="post">
  7. <h2 class="title">'.$wiersz[1].'</h2>
  8. <div class="entry"> <img src="'.$wiersz[5].'" alt="'.$wiersz[1].'" class="left" />
  9. <p>'.$wiersz[2].'</p>
  10. </div>
  11. <p class="meta"><span class="posted">Dodał <strong>'.$wiersz[3].'</strong> dnia '.$wiersz[4].'</p>
  12. </div>
  13. ';
  14. }
  15.  
  16. echo ' <div class="archiwum"><strong><a href="?k=archiwum">...:::Archiwum:::...</a></strong></div>
  17. </div>
  18. <!-- end #content -->

Proszę wejdźcie na IE i zobaczcie różnice ;(.


Kolejna sprawa jest taka, że na IE robi pętle i strona się wczytać nie może. A mianowicie jest to napisane tak:

  1. if($_SESSION['admin'] == 'ok')
  2. {
  3. <STRONY DOSTEPNE DLA ZALOGOWANYCH!>
  4. }
  5. else
  6. {
  7. header("Location: index.php"); //przenosimy na strone
  8. }

No i IE robi pętle, a na Operze działa bez problemu.

Wie ktoś jak to rozwiązać.
Go to the top of the page
+Quote Post
damyrade1990
post 10.10.2009, 22:34:04
Post #2





Grupa: Zarejestrowani
Postów: 18
Pomógł: 0
Dołączył: 10.10.2009

Ostrzeżenie: (10%)
X----


Wystarczy odpowiedni Doctype + właściwośc z CSS margin:0 auto;


--------------------
[zmoderowane by nospor]
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: 16.06.2025 - 19:45