Pomoc - Szukaj - U¿ytkownicy - Kalendarz
Pe³na wersja: [HTML] table w table
Forum PHP.pl > Forum > Przedszkole
Wieczny
Witam mam dziwny problem napisa³em strukturê strony stosuj±c table w table. Gdy sprawdzam jak wygl±da strona na FF jest wszystko ³adnie i piêknie a gdy na IE to wszystko jest jako jedna linia tak jak by IE ignorowa³o tabelki w tabelkach i uznawa³o to za kolejn± zwyk³± tabelkê link tutaj
swist666
straszny kod masz.. pamiêtaj, ¿e WSZYSTKO co jest wewn±trz jakiej¶ tabeli musi zawieraæ siê pomiêdzy <td> a </td> u Ciebie nie jest tak do koñca..

PS. Poczytaj o css smile.gif
Wieczny
gdy wstawi³em <table> pomiêdzy jeszcze <td> to ani na FF nie dzia³a³o ani na IE ;p
l0ud
Dlaczego doctype wskazuje na XHTML, skoro z nim to to wiele wspólnego nie ma?

Tutaj raczej nie ma problemu z IE - po prostu gdzie¶ nieprawid³owo zbudowa³e¶ jak±¶ tabelkê, gdzie¶ mo¿e brakuje <tr> </table>... Poczytaj co validator twierdzi o tej stronie: http://validator.w3.org/check?uri=http%3A%...nal&group=0
Wieczny
Wiêkszo¶æ z tego co tam czytam to sie po prostu nie zgadza biggrin.gif zobacz sam jak to wygl±da


  1. <?php
  2. /*
  3.  ########################################################################
  4. # #
  5. #  Version 4  / /  /  #
  6. # -----------__---/__---__------__----__---/---/-  #
  7. #  | /| / /___) /  ) (_ `  /  ) /___) /  /  #
  8. # _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___  #
  9. #  Free Content / Management System  #
  10. #  / #
  11. # #
  12. # #
  13. #  Copyright 2005-2006 by webspell.org / webspell.info #
  14. # #
  15. #  visit webSPELL.org, webspell.info to get webSPELL for free  #
  16. #  - Script runs under the GNU GENERAL PUBLIC LICENCE  #
  17. #  - It's NOT allowed to remove this copyright-tag #
  18. #  -- <a href=\"http://www.fsf.org/licensing/licenses/gpl.html\" target=\"_blank\">http://www.fsf.org/licensing/licenses/gpl.html</a> #
  19. # #
  20. #  Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at),  #
  21. #  Far Development by Development Team - webspell.org / webspell.info  #
  22. # #
  23. #  visit webspell.org / webspell.info  #
  24. # #
  25.  ########################################################################
  26. */
  27.  
  28.  
  29. @header( "P3P: CP=CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE");
  30. include("_mysql.php");
  31. include("_settings.php");
  32. include("_functions.php");
  33.  
  34.  
  35. ?>
  36. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  37. <html xmlns="http://www.w3.org/1999/xhtml">
  38. <head>
  39. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  40. <link href="css/main.css" rel="stylesheet" type="text/css" />
  41. <script src="js/bbcode.js" language="jscript" type="text/javascript"></script>
  42. <title>played.pl - Na dobry pocz±tek!</title>
  43. </head>
  44. <body>
  45.  
  46.  <table valign="top" align="left" cellspacing="0" border="0" cellpadding="0">
  47. <tr valign="top">
  48.  
  49.  <td>
  50.  <img src="images2/left-site.JPG">
  51.  </td>
  52.  
  53.  
  54.  <td align="left">
  55.  <img src="images2/logo.JPG">
  56.  
  57.  <table valign="top" bgcolor="#353638" align="left" cellspacing="0" border="0" cellpadding="0">
  58. <tr >
  59.  <td>
  60.  <img src="images2/menu.jpg">
  61.  </td>
  62.  <td>
  63.  <a href="index.php"><img border="0" src="images2/news.jpg"></a>
  64.  </td>
  65. <td>
  66.  <a href="index.php"><img border="0" src="images2/mecze.jpg"></a>
  67.  </td>
  68. <td>
  69.  <a href="index.php"><img border="0" src="images2/articuls.jpg"></a>
  70.  </td>
  71. <td>
  72.  <a href="ind3.php?site=squads"><img border="0" src="images2/sq.jpg"></a>
  73.  </td>
  74. <td>
  75.  <a href="index.php"><img border="0" src="images2/forum.jpg"></a>
  76.  </td>
  77. <td>
  78.  <a href="index.php"><img border="0" src="images2/wywiady.jpg"></a>
  79. </td>
  80. <td>
  81.  <a href="index.php"><img border="0" src="images2/pliki.jpg"></a>
  82.  </td>
  83. <td>
  84.  <a href="index.php"><img border="0" src="images2/sponsors.jpg"></a>
  85.  </td>
  86. <td>
  87.  <a href="index.php"><img border="0" src="images2/historia.jpg"></a>
  88. </td>
  89. <td>
  90.  <a href="indes.php"><img border="0" src="images2/coverage.jpg"></a> 
  91.  </td>
  92. <td>
  93.  <a href="index.php"><img border="0" src="images2/contact.jpg"></a>
  94.  </td>
  95.  
  96.  
  97.  
  98.  </tr>
  99.  
  100.  <tr>
  101.  <table valign="top" align="left" cellspacing="0" border="0" cellpadding="0">
  102.  <tr background="images2/bg-menu-login.jpg">
  103.  <td>
  104.  <img src="images2/logowanie.jpg">
  105.  </td>
  106. <td>
  107. <img border="0" src="images2/login.jpg">
  108.  </td>
  109.  <td><form method="post" name="login" action="checklogin.php"></td>
  110. <td class="login-box" >
  111.  
  112. <input size="15" type="text" name="ws_user" onfocus="if(this.value=='Login') this.value='';" onblur="if(this.value=='') this.value='Login';" value="Login" />
  113.  
  114.  </td>
  115.  
  116. <td>
  117.  <img src="images2/pass.jpg">
  118.  </td>
  119.  
  120.  <td class="login-box">
  121. <input type="password" name="pwd" onfocus="if(this.value=='haslo') this.value='';" onblur="if(this.value=='') this.value='haslo';" value="haslo" />
  122. </td>
  123. <td>
  124.  <input type="submit" class="guzik" value="Zaloguj" />
  125.  </form>
  126.  </td>
  127.  <td>
  128. <a href=""><img src="images2/reg-log.jpg"></a>
  129.  </td>
  130.  <td>
  131. <a href=""><img src="images2/re-pw.jpg"></a>
  132.  </td>
  133.  <td>
  134.  <img src="images2/search.jpg">
  135.  </td>
  136.  <td>
  137.  <img src="images2/search-panel.jpg">
  138.  </td>
  139.  </tr>
  140.  
  141. <tr >
  142.  <table valign="top" align="left" cellspacing="10" border="0" cellpadding="0"><tr>
  143.  
  144.  <td valign="top" >
  145.  
  146. <table valign="top" align="left" cellspacing="0" border="0" cellpadding="0" bgcolor="#1B1C1E">
  147. <tr background="images2/menubg.JPG" border="1"><td height="32" width="196" >Nazwa panelu</td></tr>
  148. <tr><td class="hr"><?php
  149.  
  150. include("counter.php");
  151.  
  152. ?></td></tr>
  153. </table>
  154.  
  155.  </td>
  156.  
  157.  <td valign="top" >
  158.  
  159. <table valign="top" align="left" cellspacing="0" border="0" cellpadding="0" bgcolor="#1B1C1E">
  160. <tr background="images2/menubg.JPG" border="1"><td height="32" width="196" >Aktualnosci</td></tr>
  161. <tr><td class="hr"> <?php 
  162.  
  163. echo $komun;
  164. if(!isset($site)) $site="news";
  165. //Sichheitslücke beheben
  166.  
  167. // tu cron.php
  168. include("cron.php");
  169. $invalide = array('/','//',':','.');
  170. $site = str_replace($invalide,' ',$site);
  171. if(!file_exists($site.".php")) $site = "news";
  172. include($site.".php");
  173. ?></td></tr>
  174. </table>
  175.  
  176.  </td>
  177.  
  178.  
  179.  </tr>
  180.  </table>
  181.  </tr>
  182.  
  183.  </table>
  184.  </tr>
  185.  
  186.  
  187.  </table>
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197. </tr>
  198. <tr>
  199.  
  200.  
  201.  
  202. </tr>
  203.  
  204. </table>





je¶li kto¶ mo¿e mi napisaæ jaki tam jest b³±d to txz ;]
Spirit86
Nie chce mi się tego czytać, jest napisane ochydnie...

linia 180 masz:

  1. </tr>


A gdzie zamknięcie TD?

Pozamykaj tagi, które pootwierałeś!

Swoją drogą, to zamykasz conajmniej 6 tabel, otworzyłeś tyle?
Wieczny
co do 180 linijki nie otwar³em komórki bo jak otworze <td> to sie ryje we wszystkich przegl±darkach co do table jest tyle wszystko ma otwarcie i zamkniêcie tam s± tabelki w tabelach smile.gif
a to bardziej ³adny kod ;D
  1. <?php
  2. /*
  3.  ########################################################################
  4. # #
  5. #  Version 4  / /  /  #
  6. # -----------__---/__---__------__----__---/---/-  #
  7. #  | /| / /___) /  ) (_ `  /  ) /___) /  /  #
  8. # _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___  #
  9. #  Free Content / Management System  #
  10. #  / #
  11. # #
  12. # #
  13. #  Copyright 2005-2006 by webspell.org / webspell.info #
  14. # #
  15. #  visit webSPELL.org, webspell.info to get webSPELL for free  #
  16. #  - Script runs under the GNU GENERAL PUBLIC LICENCE  #
  17. #  - It's NOT allowed to remove this copyright-tag #
  18. #  -- <a href=\"http://www.fsf.org/licensing/licenses/gpl.html\" target=\"_blank\">http://www.fsf.org/licensing/licenses/gpl.html</a> #
  19. # #
  20. #  Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at),  #
  21. #  Far Development by Development Team - webspell.org / webspell.info  #
  22. # #
  23. #  visit webspell.org / webspell.info  #
  24. # #
  25.  ########################################################################
  26. */
  27. @header( "P3P: CP=CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE");
  28. include("_mysql.php");
  29. include("_settings.php");
  30. include("_functions.php");
  31. ?>
  32. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  33. <html xmlns="http://www.w3.org/1999/xhtml">
  34. <head>
  35. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  36. <link href="css/main.css" rel="stylesheet" type="text/css" />
  37. <script src="js/bbcode.js" language="jscript" type="text/javascript"></script>
  38. <title>played.pl - Na dobry pocz±tek!
  39. </title>
  40. </head>
  41. <body>  
  42. <table valign="top" align="left" cellspacing="0" border="0" cellpadding="0">
  43. <tr valign="top"> <td>  
  44. <img src="images2/left-site.JPG">  </td>  
  45. <td align="left">  
  46. <img src="images2/logo.JPG">  
  47. <table valign="top" bgcolor="#353638" align="left" cellspacing="0" border="0" cellpadding="0">
  48. <tr > <td>  
  49. <img src="images2/menu.jpg"> </td> <td>  
  50. <a href="index.php">
  51. <img border="0" src="images2/news.jpg"></a> </td> <td>  
  52. <a href="index.php">
  53. <img border="0" src="images2/mecze.jpg"></a> </td> <td>  
  54. <a href="index.php">
  55. <img border="0" src="images2/articuls.jpg"></a> </td> <td>  
  56. <a href="ind3.php?site=squads">
  57. <img border="0" src="images2/sq.jpg"></a> </td> <td>  
  58. <a href="index.php">
  59. <img border="0" src="images2/forum.jpg"></a> </td> <td>  
  60. <a href="index.php">
  61. <img border="0" src="images2/wywiady.jpg"></a> </td> <td>  
  62. <a href="index.php">
  63. <img border="0" src="images2/pliki.jpg"></a> </td> <td>  
  64. <a href="index.php">
  65. <img border="0" src="images2/sponsors.jpg"></a> </td> <td>  
  66. <a href="index.php">
  67. <img border="0" src="images2/historia.jpg"></a> </td> <td>  
  68. <a href="indes.php">
  69. <img border="0" src="images2/coverage.jpg"></a>  </td> <td>  
  70. <a href="index.php">
  71. <img border="0" src="images2/contact.jpg"></a> </td>  
  72. </tr>  
  73. <tr> 
  74. <table valign="top" align="left" cellspacing="0" border="0" cellpadding="0"> 
  75. <tr background="images2/bg-menu-login.jpg"> <td>  
  76. <img src="images2/logowanie.jpg"> </td> <td>
  77. <img border="0" src="images2/login.jpg"> </td> <td>
  78. <form method="post" name="login" action="checklogin.php"></td>
  79. <td class="login-box" >  
  80. <input size="15" type="text" name="ws_user" onfocus="if(this.value=='Login') this.value='';" onblur="if(this.value=='') this.value='Login';" value="Login" /> </td> <td>  
  81. <img src="images2/pass.jpg"> </td>  
  82. <td class="login-box">
  83. <input type="password" name="pwd" onfocus="if(this.value=='haslo') this.value='';" onblur="if(this.value=='') this.value='haslo';" value="haslo" /> </td> <td>  
  84. <input type="submit" class="guzik" value="Zaloguj" />  
  85. </form> </td> <td>
  86. <a href="">
  87. <img src="images2/reg-log.jpg"></a> </td> <td>
  88. <a href="">
  89. <img src="images2/re-pw.jpg"></a> </td> <td> 
  90. <img src="images2/search.jpg"> </td> <td> 
  91. <img src="images2/search-panel.jpg"> </td> 
  92. </tr>
  93. <tr ><td> 
  94. <table valign="top" align="left" cellspacing="10" border="0" cellpadding="0">
  95. <tr> 
  96. <td valign="top" >
  97. <table valign="top" align="left" cellspacing="0" border="0" cellpadding="0" bgcolor="#1B1C1E">
  98. <tr background="images2/menubg.JPG" border="1">
  99. <td height="32" width="196" >Nazwa panelu</td>
  100. </tr>
  101. <tr>
  102. <td class="hr">
  103. <?php
  104.  
  105. include("counter.php");
  106.  
  107. ?></td>
  108. </tr>
  109. </table>  </td>  
  110. <td valign="top" >
  111. <table valign="top" align="left" cellspacing="0" border="0" cellpadding="0" bgcolor="#1B1C1E">
  112. <tr background="images2/menubg.JPG" border="1">
  113. <td height="32" width="196" >Aktualnosci</td>
  114. </tr>
  115. <tr>
  116. <td class="hr">
  117. <?php 
  118.  
  119. echo $komun;
  120. if(!isset($site)) $site="news";
  121. //Sichheitsl&uuml;cke beheben
  122.  
  123. // tu cron.php
  124. include("cron.php");
  125. $invalide = array('/','//',':','.');
  126. $site = str_replace($invalide,' ',$site);
  127. if(!file_exists($site.".php")) $site = "news";
  128. include($site.".php");
  129. ?></td>
  130. </tr>
  131. </table>  </td>
  132. </tr> 
  133. </table> </td> 
  134. </tr>  
  135. </table> 
  136. </tr> 
  137. </table>  
  138. </tr>
  139. <tr> 
  140. </tr>
  141. </table>


czy jest kto¶ na tym forum na tyle "normalny" ¿eby mi pomóg³ questionmark.gif
nitek
Cytat
czy jest ktoś na tym forum na tyle "normalny" żeby mi pomógł


Tak, myślę, że google... np:
http://webmaster.helion.pl/kurshtml/tabele/tabele.htm
jest tam elegancki rozdział 'zagniezdzanie tabel' - wystarczy że zobaczysz źródło przykładu.. To co napisałeś, że nie otworzyłeś td w tabeli, bo masz tam drugą tabele wskazuje na to, że w ogóle nie wiesz jak sie je zagnieżdża..

zagnieżdżona tabela musi zawierać sie w całości w komórce tabeli nadrzędnej, czyli musi się zawierać w jej znacznikach <td> </td>..

Przeleć stronę validatorem w3, jak dojdziesz do wyniku zero błędów, to na pewno dobrze będzie Ci sie wyświetlać...

PS lepszą stronę znajdziesz na pierwszej pozycji w google...: http://www.google.pl/search?hl=pl&q=ht...=Szukaj&lr=
Wieczny
dobra bez waszej pomocy doszed³em do b³êdu i nikt z was nie mia³ racji narX. ( szkoda czasu na posty )
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.