【发布时间】: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> |
<a href="http://osc4.template-help.com/zencart_32899/index.php?main_page=products_new">New Products</a>
|
<a href="http://osc4.template-help.com/zencart_32899/index.php?main_page=specials">Specials</a>
|
<a href="http://osc4.template-help.com/zencart_32899/index.php?main_page=products_all">Products All</a>
|
<a href="http://osc4.template-help.com/zencart_32899/index.php?main_page=reviews">Reviews</a>
|
<a href="http://osc4.template-help.com/zencart_32899/index.php?main_page=contact_us">Contact Us</a>
|
<a href="http://osc4.template-help.com/zencart_32899/index.php?main_page=gv_faq">FAQ</a>
</div>
<div class="copyright">
Copyright © 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;向左飘浮; }
-
正如我所说,除非我们能看到正在运行的页面,否则很难提供帮助。