日期:2014-05-17  浏览次数:20772 次

background:#d20a26 在FF下怎么不起作用呢?
div id="top_containter">
<div id="logo"></div>
<div id="menu">
<ul id="menutitle">
<li>
<div><a href="default.aspx"><img alt="都市女人" src="images/system/menu-left.jpg" /></a></div>
<div><a href="default.aspx">最新上架&nbsp;</a></div><div class="xian"></div>
<div><a href="default.aspx">时尚热卖&nbsp;</a></div><div class="xian"></div>
<div><a href="default.aspx">时尚分类&nbsp;</a></div><div class="xian"></div>
<div><a href="default.aspx">会员砖区&nbsp;</a></div><div class="xian"></div>
<div><a href="default.aspx">活动专题&nbsp;</a></div><div class="xian"></div>
<div class="menutext">&nbsp;&nbsp;<input type="text" id="email" class="inputtext120" onfocus="this.select()" value="abc@18m.com" runat="server" /></div>
<div class="menutext"><asp:ImageButton style="margin-bottom:0px" ID="ImageButton1" runat="server" ImageUrl="images/button/dingyue.gif" OnClick="ImageButton1_Click" /></div>
</li>
</ul>
</div>
<div class="br"></div>
</div>


我在CSS文件中定义 MENU的背景

 #top_containter #menu {text-indent:10px;line-height:25px;font-size:14px;color:#FFFFFF;text-align:left;width:960px;background:#d20a26}

在IE下是正常的,但是在FF下背景为什么老是不起作用呢??????





------解决方案--------------------
没问题,完全可以显示。以下是我用你的代码做的,在FF中可以显示背景颜色,与IE浏览器相同。


<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>

</title>
<style type="text/css">
#top_containter #menu {text-indent:10px;line-height:25px;font-size:14px;color:#FFFFFF;text-align:left;width:960px;background:#d20a26} 
</style>

</head>
<body>
<div id="top_containter"> 
<div id="logo"> </div> 
<div id="menu"> 
<ul id="menutitle"> 
<li> 
<div> <a href="default.aspx"> <img alt="都市女人" src="images/system/menu-left.jpg" /> </a> </div> 
<div> <a href="default.aspx">最新上架&nbsp; </a> </div> <div class="xian"> </div> 
<div> <a href="default.aspx">时尚热卖&nbsp; </a> </div> <div class="xian"> </div> 
<div> <a href="default.aspx">时尚分类&nbsp; </a> </div> <div class="xian"> </div> 
<div> <a href="default.aspx">会员砖区&nbsp; </a> </div> <div class="xian"> </div> 
<div> <a href="default.aspx">活动专题&nbsp; </a> </div> <div class="xian"> </div> 
<div class="menutext">&nbsp;&nbsp; <input type="text" id="email" class="inputtext120" onfocus="this.select()" value="abc@18m.com" runat="server" /> </div> 
<div class="menutext"> <asp:ImageButton style="margin-bottom:0px" ID="ImageButton1&