我遇到一个奇怪的问题,我的简单页脚在Firefox中无法正常显示。它基本上是一个显示内联导航向左浮动,一个标签向右浮动。似乎在其他所有浏览器中都能正常工作。这是代码:
HTML
<div id="footer_wrap">
<div id="footer_area">
<ul id="footer_nav">
<li><a href="{site_url}" {if segment_1 == "" OR segment_1 == "view"}class="active"{/if}>Blog</a></li>
<li><a href="{path="/archives"}" {if segment_1 == "archives"}class="active"{/if}>Archives</a></li>
<li><a href="{path="about"}" {if segment_1 == "about"}class="active"{/if}>About</a></li>
</ul>
<a href="{site_url}" id="footer_logo">© {current_time format="%Y"} {site_name}</a>
<div class="clear"></div>
</div> <!-- end footer area -->
</div> <!-- end footer wrap -->
CSS
#footer_nav {float: left; list-style: none;}
#footer_nav li {display: inline; margin-right: 20px;}
#footer_nav li a {
font-weight: bold;
color: #FFFFFF;
opacity: 0.8;
filter: alpha(opacity=80);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=80)";
text-transform: uppercase;
font-size: 12px;
}
#footer_nav li a:hover {
font-weight: bold;
opacity: 1;
filter: alpha(opacity=100);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=100)";
}
#footer_nav li a.active {
font-weight: bold;
opacity: 1;
filter: alpha(opacity=100);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=100)";
}
#footer_logo {
float: right;
color: #FFFFFF;
font-size: 18px;
opacity: 0.8;
filter: alpha(opacity=80);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=80)";
-webkit-transition: all 0.1s ease-in-out;
-moz-transition: all 0.1s ease-in-out;
-o-transition: all 0.1s ease-in-out;
}
#footer_logo:hover {
opacity: 1;
filter: alpha(opacity=100);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=100)";
}
以下是简化代码,只有两个验证错误是针对图像上的空“高度”值
<div id="footer_wrap">
<div id="footer_area">
<ul id="footer_nav">
<li><a href="#">Blog</a></li>
<li><a href="#">Archives</a></li>
<li><a href="#">About</a></li>
</ul>
<a href="#" id="footer_logo">© 2011 Mysitename</a>
<div class="clear"></div>
</div> <!-- end footer area -->
</div> <!-- end footer wrap -->
好
为
答案 0 :(得分:0)
(从an edit to the question移出):
最后想出来的人,这是一个流氓括号,而不是我的CSS样式表中更高的大括号,这意味着下面的所有内容都没有被firefox或opera看到