我正在一个网站上,出于某种原因,在全屏页脚扩展到完全宽度,但是当我降低了屏幕尺寸,有一个随机白块出现在右下角。有任何想法吗? http://i.imgur.com/9KyaXO6.png半屏的div不会扩展到完全宽度
HTML:
<div id="footer-container">
<footer>
<?php require_once("footer.php"); ?>
</footer>
</div>
CSS:
div#footer-container {
min-width: 100%;
background: #41038e;
bottom: 0;
height: 150px;
padding: 0;
margin: 0 auto;
}
footer {
width: 960px;
height: 140px;
margin: 0 auto;
padding-top: 10px;
}
这里的网站:http://thecupertinoflorist.com/index.php
在Firefox 21.0看起来不错 – Starx
我在Aurora和Chrome中打开它,两者似乎都有问题。 – Andrew
看起来您的标题可能会向右扩展得太远。 – showdev