【问题标题】:Typo3 footer repeat xTypo3 页脚重复 x
【发布时间】:2013-10-16 11:14:27
【问题描述】:

我知道这方面有很多话题,但这些话题都没有真正帮助我。 我有一个基于 Typo3 的电子商店。我有页脚,我想和我的浏览器窗口一样宽。在我的主页上,没有问题。但是当我点击“显示所有产品”时,会出现产品列表,但我的页脚只有 988px 宽。在我的 index.html 模板文件中,我为页脚分隔了 div(它不在任何其他 div 或块中): 页脚

 <div id="footer">
    <div class="main-width">

        <div class="footer-menu" id="footerMenu">
           <a href="http://osc4.template-help.com/zencart_32899/">Home</a>&nbsp;&nbsp;|&nbsp;&nbsp;
           <a href="http://osc4.template-help.com/zencart_32899/index.php?main_page=products_new">New Products</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
           <a href="http://osc4.template-help.com/zencart_32899/index.php?main_page=specials">Specials</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
           <a href="http://osc4.template-help.com/zencart_32899/index.php?main_page=products_all">Products All</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
           <a href="http://osc4.template-help.com/zencart_32899/index.php?main_page=reviews">Reviews</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
           <a href="http://osc4.template-help.com/zencart_32899/index.php?main_page=contact_us">Contact Us</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
           <a href="http://osc4.template-help.com/zencart_32899/index.php?main_page=gv_faq">FAQ</a> 
 </div>
 <div class="copyright">
           Copyright &copy; 2013 
          </div>
                </div>

           </div>

当我在 OPERA 中加载我的页面并单击(在歌剧中)“检查元素”时,我的页脚(在所有产品页面上)似乎在某种 div 中(contentWrapper):

 <body id="indexBody">
     - <div class="main-width">
         + <div id="header">
           <div class="banners"/>
         + <div class="crsl">
         - <div id="contentWrapper">
            + <div id="sidebar">
            + <div id="content_container">
            + <div id="footer">

 </div>
 </div>
 </body>
 </html>

+ 和 - 显示哪些 div 已折叠,哪些未折叠。希望它清楚。 :) 在我的主页上,当我单击检查元素时,我的页脚不在那个“contentWrapper”div 中。哪里可能有问题?请帮忙

【问题讨论】:

  • 超链接会很有用,我们可以自己检查
  • 我在我的本地主机上有它,所以这可能很困难:(
  • 那就很难了……主页面和产品页面使用不同的模板吗?我对 Typo3 不熟悉
  • 没有。我有 products_template.html,其中定义了产品的组织方式,在我的主页上我也有产品列表。所有这一切都发生在我尝试格式化产品列表时。我不得不把那个产品框(Category_title,product_title,product_image,buy_button)放在一个 div 中,所以每个新的产品类别都从新的一行开始。这是该 div 的样式: {display: inline-block;向左飘浮; }
  • 正如我所说,除非我们能看到正在运行的页面,否则很难提供帮助。

标签: html css typo3 footer


【解决方案1】:

永远不要相信那些元素检查器,因为它们总是在花哨的可折叠树视图中显示解释的源代码。查看纯源代码并计算 div 标签。我敢打赌,第二个模板错过了一个结束的模板 ;-)

【讨论】:

  • 我已经检查过了。没有缺少结束标签。我什至试图把一个放在那里,但情况更糟。我真的不知道我的问题应该是什么。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-04-03
  • 1970-01-01
  • 2019-06-27
  • 1970-01-01
  • 1970-01-01
  • 2010-12-20
  • 1970-01-01
相关资源
最近更新 更多