我目前有以下问题:一旦我点击产品,页脚宽度就会变小。现场示例:(小页脚:) http://osolemio.nl/serdar/index.php?route=product/product&path=59&product_id=97
(应该如何:) http://osolemio.nl/serdar/index.php
我通过编辑css、宽度 100% 等尝试了几种方法,但没有任何效果。有人看看有什么问题吗??
提前致谢。
我目前有以下问题:一旦我点击产品,页脚宽度就会变小。现场示例:(小页脚:) http://osolemio.nl/serdar/index.php?route=product/product&path=59&product_id=97
(应该如何:) http://osolemio.nl/serdar/index.php
我通过编辑css、宽度 100% 等尝试了几种方法,但没有任何效果。有人看看有什么问题吗??
提前致谢。
这是因为您在产品页面中的页脚在#content 内部呈现,而在主索引页面中它在外部。
您要么忘记关闭任何 div,要么来自 CMS 的代码搞砸了您的标记。
在产品页面中有一个不会关闭的 div(没有</div>
)。找出并添加</div>
. 它在<div class="product-info">
元素内部
<div id="content">
没有正确关闭。它必须先关闭<div id="footer">
。
将#footer
元素从元素中取出,紧跟#content
在元素之后#content
。