0

我在修复Firefox中视频类别的布局时遇到问题它在谷歌浏览器中正常工作但在Firefox中对齐中心的表格离开它的位置并制作水平滚动条使其需要一些专家参与smarty我正在展示smarty编码请大家帮帮我哟,伙计们也可以检查Firefox Givin Prob 的页面。

在 Google Chrome 和 Firefox 中检查此页面,它在 Chrome 中运行良好,但在 Firefox 中运行良好,请帮助我

<div align="center">
<table border="0" align="center">
{section name=i loop=$cat step=4 max=6} <!--ROWS EG change max=???-->
    <tr> 
{section name=cat loop=$cat start=$smarty.section.i.index max=4}<!-- COLUMNS EG change max=??? to the ammount and step=??? to the same ammount-->
    <td align="center"><a href="index.php?cat={$cat[cat].id}"><b>{$cat[cat].name}</b><br /><img border="0" width="153" height="120" src="{$cat[cat].picture}" {if $firefox eq "1"}class="reflect" alt="No Image Yet"{/if} /></a></td>
    {/section}
    </tr>
{/section}
</table>
</div>
4

1 回答 1

1

br作为第一个元素放入您的div

<div align="center">
   <br/>
   <table border="0" align="center">
   .
   .

或者您可以在搜索部分之后添加更清晰的内容:

.
.
</div>

<div style="clear:both"></div>

<div align="center">
.
.

出现问题的原因是您的搜索部分div向左浮动,与您的第二个部分重叠div并推动了table. 添加一个清除器后,第一个div有东西要推动而不是你的桌子。

于 2012-09-28T08:09:06.420 回答