Home  >  Article  >  Web Front-end  >  上面的css代码为什么在ie7 与 ie8下宽度不一样呢?_html/css_WEB-ITnose

上面的css代码为什么在ie7 与 ie8下宽度不一样呢?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:40:051026browse

<div style="overflow:hidden; color: #0000FF; font-weight: lighter; line-height: 20px; border: 1px solid #0000ff; padding-left: 5px; background-color: #FEF8F8;">aaaaaaaaaaaaaaaaaa</div>


上面的代码为什么在ie7 与 ie8下宽度不一样呢?
i7上是随着外面的div显示一样的宽

ie8下是只显示一半的宽度

这个要怎么在ie 7,8上一样?


回复讨论(解决方案)

aaaaaaaaaaaaaaaaaa



上面的代码.一楼的不显示

怎么我测试的都一样。。IE7, iE8 还有火狐 IE6都一样。。

加上 width:100%

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn