问题描述
|
有什么方法可以像Firefox一样使IE7正确解释CSS?
我在width + padding div属性上遇到了问题。
在FF / IE8 +上,div自动扩展,并且该div中的内容正确居中,但是在IE7 div中,div向右移动,溢出部分隐藏了其余内容。看下面的图片:
填充预览http://uploadpic.org/storage/2011/D8AHkOOwH8DhIFlogShP0zhPG.jpg
有什么办法可以破解吗?
一些CSS代码:
#center { width: 50%; height:auto; position:relative; padding-left:500px; }
#both { width:1000px; float:right; }
#content_home { width:698px; margin:0 auto; min-height:400px;
float:left; position:relative; }
和HTML代码:
<div id=\"center\">
<div id=\"both\">
<div id=\"content_home\">
<p>...</p>
</div>
<div id=\"right\">
<p>...</p>
</div>
</div>
<div class=\"clear\"></div>
</div>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)