Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Niepoprawne wyświetlanie
serv
post
Post #1





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 19.01.2007
Skąd: Gorzów Wielkopolski

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


witam!
w poniższym kodzie jest coś nie tak... podgląd jak to wygląda można zobaczyć na stronie http://www.gipfel.nazwa.pl/test/uindex.php
Po otawrciu tej strony efekt na niektórych komputerach wygląda tak: http://img49.imageshack.us/my.php?image=beztytu322uot5.jpg
A powinno być takie coś: http://img253.imageshack.us/img253/2458/456bw3.jpg
Coś jest nie tak w tym kodzie tylko nie wiem co...
Jeśli ktoś byłby w stanie mi pomóc to byłbym wdziędzny (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
  1. <html>
  2.  
  3. <head>
  4. <meta http-equiv="Content-Language" content="pl">
  5. <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
  6. <title>Gipfel Poland - Witamy!</title>
  7. </head>
  8.  
  9. <body bgcolor="#2E2461">
  10.  
  11. <table border="0" width="81%" cellspacing="0" cellpadding="0" id="table2">
  12.  
  13.  
  14. <table border="0" width="81%" cellspacing="0" cellpadding="0" id="table1">
  15. <tr>
  16. <td>
  17. <div style="width: 1024px;">
  18.  
  19. <?php
  20.  
  21. $target[3] = '/home.php';
  22. $target[5] = '/catalog.php';
  23. $target[8] = '/news.php';
  24. $target[10] = '/partners.php';
  25. $target[12] = '/contact.php';
  26.  
  27.  
  28. for ($c = 1; $c < 14; $c++){
  29.  
  30. echo '<div style="float: left;">';
  31.  
  32.  
  33.  
  34. if (isset($target[$c]))
  35.  
  36. echo '<a href="'.$target[$c].'"><img style="border: 0"; src="image/uindex/'.$c.'.JPG"></a>';
  37.  
  38. else 
  39.  
  40. echo '<img src="image/uindex/'.$c.'.JPG">';
  41.  
  42.  
  43.  
  44. echo '</div>';
  45.  
  46. }
  47.  
  48. echo '<div style="clear: both;"></div>';
  49. echo '</td>
  50. </tr>
  51. <tr>
  52. <td height="392">
  53. <div style="float: left;">
  54. <iframe name="I1" src="1.htm" width="1017" height="394" frameborder="0">
  55. </iframe></div></td>
  56. </tr>';
  57. echo '<div style="clear: both;"></div>';
  58.  
  59. ?>
  60.  
  61. </div>
  62.  
  63. <tr>
  64. <td> <div style="width: 1024px;">
  65.  
  66. <?php
  67.  
  68. $target[16] = 'mailto:obsluga@gipfelpoland.pl';
  69. $target[20] = 'http://www.gipfelpoland.pl/';
  70. $target[19] = 'mailto:obsluga@gipfelpoland.pl';
  71. $target[20] = 'mailto:webmaster@gipfelpoland.pl';
  72.  
  73.  
  74.  
  75. for ($c = 15; $c < 21; $c++){
  76.  
  77. echo '<div style="float: left;">';
  78.  
  79.  
  80.  
  81. if (isset($target[$c]))
  82.  
  83. echo '<a href="'.$target[$c].'"><img style="border: 0"; src="image/uindex/'.$c.'.JPG"></a>';
  84.  
  85. else 
  86.  
  87. echo '<img src="image/uindex/'.$c.'.JPG">';
  88.  
  89.  
  90.  
  91. echo '</div>';
  92.  
  93. }
  94.  
  95. echo '<div style="clear: both;"></div>';
  96.  
  97. ?>
  98.  
  99. </div>
  100. </td>
  101. </tr>
  102. </table>
  103.  
  104. </body>
  105.  
  106. </html>


Pozdrawiam!

Ten post edytował serv 19.01.2007, 22:58:43
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
maryaan
post
Post #2





Grupa: Zarejestrowani
Postów: 380
Pomógł: 2
Dołączył: 5.01.2007

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


chlopie po co zes tam wladowal tabelke? blad dotyczy czego? tego ze tlo sie przewija razem ze strona? to najpierw zrob tak zeby sie na tej dolaczanej stronie nie przewijalo

clear: both wystarczy zarzucic na divie zawierajacym ifame (najlepiej by bylo sie tego iframe w ogole pozbyc)

Ten post edytował maryaan 19.01.2007, 23:14:41
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: 12.10.2025 - 00:09