我使用 Firebug 找到了它firefox 15.0
并得到了解决方案,希望它适用于所有浏览器。
1 . 删除为定义的 css 规则#footer
并添加这些规则,.crash
如下所示:
.crash {
height: 10%;
position: absolute;
text-align: center;
top: 82%;
width: 100%;
}
2 . 添加以下规则:
.footerNav {
position: absolute;
text-align: center;
top: 92%;
width: 100%;
}
3 . 并.mod-languages
用下面给出的替换现有样式:
.mod-languages {
position: absolute;
text-align: center;
top: 96%;
width: 100%;
}
补充笔记:
您的 HTML 结构如下所示:
<div class="moduletable">
<div class="custom">
<div id="logo">
<a href="http://www.millioncranes.com">
</div>
</div>
</div>
So when you wrap moduletable
with #footer
like below:
<div id="footer">
<div class="moduletable">
<div class="custom">
<div class="crash">
<a title="CRASH Japan" href="http://crashjapan.com">
<img src="/images/crashlogo.png">
</a>
</div>
</div>
</div>
.. /*Another moduletable*/
.. /*Another moduletable*/
</div>
This causing a problem. The style of #footer
applying on all moduletable
elements inside #footer
. So do not need to wrap these elements inside footer. Style your elements like you have styled for #logo
, That's it!
Hopefully it will fix your problem in all browsers.