Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [HTML]Tabela źle wyświetlana w Chrome
Forum PHP.pl > Forum > Po stronie przeglądarki > HTML \ XHTML
esteros
Witam!
Edytując szablon do phpBB modified by Przemo natknąłem się na problem, otóż tabela źle wyświetlana jest w google chrome, operze natomiast w firefoxie wszystko działa poprawnie. I zwracam się z pytaniem do Was, gdzie jest błąd? Tutaj kod:
*.tpl
  1. <table width="944px" cellpadding="2" cellspacing="0" border="0" class="" style="border-spacing:0 2px; margin-top: -2px; -moz-border-radius:5px; -webkit-border-radius:5px; -khtml-border-radius:5px; border-radius:5px; behaviour:url(border-radius.htc);">
  2. <!-- END tablehead -->
  3. <!-- BEGIN cathead -->
  4. <div style="background-color: red;">
  5. <tr class="cellpic2" style="backgroud: transparent; background-repeat: no-repeat;">
  6. <td></td>
  7. <td></td>
  8. <td></td>
  9. <td><img src="templates/subSilver/img/forum.png"></td>
  10. <td style="text-align: center;"><img src="templates/subSilver/img/podsumowanie.png"></td>
  11. <td style="text-align: center;"><img src="templates/subSilver/img/ostpost.png"></td>
  12. <td></td>
  13. <td></td>
  14. </tr>
  15. </div>
  16. <!-- BEGIN inc -->
  17.  
  18. <!-- END inc -->
  19.  
  20. <!-- END cathead -->
  21.  
  22. <!-- BEGIN cattitle -->
  23.  
  24. <!-- END cattitle -->
  25.  
  26. <!-- BEGIN forumrow -->
  27. <tr>
  28. <!-- BEGIN inc -->
  29. <td width="46px" class="{catrow.forumrow.inc.INC_CLASS}"><img src="{SPACER}" width="46" height="0"></td>
  30. <!-- END inc -->
  31. <td class="lewotlotabeli" height="86px" width="13px"></td>
  32. <td class="srtlotabeli">
  33. <td class="{catrow.forumrow.INC_CLASS} srtlotabeli" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}"></td>
  34. <td class="row1 srtlotabeli" width="600px" height="50" colspan="{catrow.forumrow.INC_SPAN}">
  35. <span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink"{catrow.forumrow.FORUM_COLOR}>{catrow.forumrow.FORUM_NAME}</a></span><span class="gensmall">&nbsp;&nbsp;{catrow.forumrow.LAST_POSTMSG}<br></span>
  36. <span class="genmed">{catrow.forumrow.FORUM_DESC}<br></span>
  37. <span class="gensmall">
  38. {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
  39. <!-- BEGIN links -->
  40. {catrow.forumrow.links.L_LINKS} {catrow.forumrow.links.LINKS}
  41. <!-- END links -->
  42. </span></td>
  43. <!-- BEGIN forum_link_no -->
  44. <td class="row2 srtlotabeli2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS} tematów </br> {catrow.forumrow.POSTS} odpowiedzi</span></td>
  45. <td class="row2 srtlotabeli" align="center" valign="middle" height="50" nowrap="nowrap"><span class="gensmall">{catrow.forumrow.LAST_POST}{catrow.forumrow.NUM_NEW_TOPICS}{catrow.forumrow.NUM_
    NEW_POSTS}</span></td>
  46. <!-- END forum_link_no -->
  47. <!-- BEGIN forum_link -->
  48. <td class="row2 srtlotabeli" align="center" valign="middle" height="50" colspan="3"><span class="gensmall">{catrow.forumrow.forum_link.HIT_COUNT}</span></td>
  49. <!-- END forum_link -->
  50. <td class="prawolotabeli" height="86px" width="13px"></td>
  51.  
  52.  
  53. </tr>
  54. <!-- END forumrow -->
  55. <!-- BEGIN catfoot -->
  56. <!-- BEGIN inc -->
  57. <!-- END inc -->
  58. <!-- END catfoot -->
  59. <!-- BEGIN tablefoot -->
  60. </table>


*.css
  1. .cellpic2 {
  2. height: 23px;
  3. background: transparent;
  4. background-image: url(img/cellpic2.png);
  5. }


Dorzucam screeny:
Firefox

Chrome, Opera

Pozdrawiam!
expert
Cytat
<table width="944px" cellpadding="2" cellspacing="0" border="0" class="" style="border-spacing:0 2px; margin-top: -2px; -moz-border-radius:5px; -webkit-border-radius:5px; -khtml-border-radius:5px; border-radius:5px; behaviour:url(border-radius.htc);">
<!-- END tablehead -->
<!-- BEGIN cathead -->
<div style="background-color: red;">
<tr class="cellpic2" style="backgroud: transparent; background-repeat: no-repeat;">
<td></td>
<td></td>
<td></td>
<td><img src="templates/subSilver/img/forum.png"></td>
<td style="text-align: center;"><img src="templates/subSilver/img/podsumowanie.png"></td>
<td style="text-align: center;"><img src="templates/subSilver/img/ostpost.png"></td>
<td></td>
<td></td>
</tr>
</div>
<!-- BEGIN inc -->

<!-- END inc -->

Wytłuszczone - co to ma być? O.o Co chciałeś osiągnać 'wstawając' DIVa?
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-2024 Invision Power Services, Inc.