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

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

WBOY
Release: 2016-06-21 09:40:05
Original
1085 people have browsed it

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


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

ie8下是只显示一半的宽度

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


回复讨论(解决方案)

aaaaaaaaaaaaaaaaaa



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

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

加上 width:100%

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template