在ie和firefox上为什么显示不同?如何解决,谢谢!!
#holder_default
{
margin: 4px auto 4px auto;
width: 742px;
}
#foot
{
border-width: 1px 1px 1px 1px;
border-style: solid;
border-color: #C0C0C0;
width: 740px;
background-color: #E4E4E4;
margin-right: auto;
margin-left: auto;
color: #A7A4A4;
}
#part_left
{
float: left;
width: 240px;
display: inline;
margin-right: 4px;
margin-bottom: 4px;
}
#part_right
{
display: inline;
float: left;
width: 498px;
}
<div id="holder_default">
<div id="part_left">
<div class="box" id="news_box">
<div class="title">
News</div>
<p>
we have goog news.</p>
</div>
<div class="box" id="card_box">
<div class="title">
Card</div>
<p>
this is card.</p>
</div>
</div>
<div id="part_right">
<div class="box">
<div class="title">
Products</div>
<p>
Products.</p>
</div>
</div>
</div>
<div id="foot">
<p>
Copyright © 2008, All Rights Reserved</p>
</div>
为什么在ie中显示的是foot在holder_default下方,而在firefox中显示的foot与holder_default平齐显示,以至于在firefox中实际现实的foot在Pert_left和part_right的底层显示,我要的是ie中的效果,谢谢大家了,正学习CSS中...
...全文
相关推荐
ul在Firefox和IE下的不同表现的解决方法
本文主要探讨的是`ul`列表在Firefox和Internet Explorer(IE)下表现不一致的问题及其解决方法。
js在IE和Firefox不同之处
IE(Internet Explorer)与Firefox作为曾经及现在的主流浏览器,在处理JS方面存在一些显著的不同。下面将详细介绍这些不同之处,并提供相应的解决方案。#### 1.
CSS hack 针对IE6,IE7,firefox显示不同效果
针对IE6、IE7和Firefox显示不同效果的CSS hack是前端开发中常见的需求,特别是在使用CSS+DIV布局时。
Firefox IE Tab
IE下的显示效果。
CSS hack技巧之IE6,IE7,firefox显示不同效果
为了确保网站能在各种浏览器中正常显示,开发者常常需要使用CSS Hack来解决兼容性问题。本文将详细介绍如何利用CSS Hack技巧使IE6、IE7以及Firefox等浏览器显示不同的样式效果。


