我知道这有很多线程,但这些线程都没有真正帮助我。 我有一个基于Typo3的电子商店。我有足够的页脚,我想要像我的浏览器窗口一样宽。在我的主页上,没有问题。但是当我点击“显示所有产品”时,产品列表将会出现,但我的页脚只有988px宽。在我的index.html模板文件中,我将div分隔为页脚(它不在任何其他div或块中): FOOTER
<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中加载我的页面并在“Inspect element”上单击(在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被折叠,哪些不是。希望它清楚。 :) 在我的主页面上,当我单击inspect元素时,我的页脚不在“contentWrapper”div中。哪里可能有问题?请帮忙
答案 0 :(得分:0)
永远不要相信这些元素检查器,因为它们总是在花哨的可折叠树视图中显示解释的源代码。看看普通的源代码并计算div标签。我打赌第二个模板错过了一个关闭模板; - )